mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-18 05:50:39 -04:00
Change RetroShareLink creation methodes as static
And remove this warning:
This commit is contained in:
parent
2d5e1d637f
commit
82addce867
28 changed files with 273 additions and 234 deletions
|
@ -1464,8 +1464,8 @@ void TransfersDialog::copyLink ()
|
|||
continue;
|
||||
}
|
||||
|
||||
RetroShareLink link;
|
||||
if (link.createFile(QString::fromUtf8(info.fname.c_str()), info.size, QString::fromStdString(info.hash.toStdString()))) {
|
||||
RetroShareLink link = RetroShareLink::createFile(QString::fromUtf8(info.fname.c_str()), info.size, QString::fromStdString(info.hash.toStdString()));
|
||||
if (link.valid()) {
|
||||
links.push_back(link) ;
|
||||
}
|
||||
}
|
||||
|
@ -1487,8 +1487,8 @@ void TransfersDialog::ulCopyLink ()
|
|||
continue;
|
||||
}
|
||||
|
||||
RetroShareLink link;
|
||||
if (link.createFile(QString::fromUtf8(info.fname.c_str()), info.size, QString::fromStdString(info.hash.toStdString()))) {
|
||||
RetroShareLink link = RetroShareLink::createFile(QString::fromUtf8(info.fname.c_str()), info.size, QString::fromStdString(info.hash.toStdString()));
|
||||
if (link.valid()) {
|
||||
links.push_back(link) ;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue