mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -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
|
@ -712,8 +712,8 @@ void SearchDialog::copySearchLink()
|
|||
std::cerr << "SearchDialog::copySearchLink(): keywords: " << keywords.toStdString();
|
||||
std::cerr << std::endl;
|
||||
|
||||
RetroShareLink link;
|
||||
if (link.createSearch(keywords)) {
|
||||
RetroShareLink link = RetroShareLink::createSearch(keywords);
|
||||
if (link.valid()) {
|
||||
QList<RetroShareLink> urls;
|
||||
urls.push_back(link);
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
|
@ -1443,11 +1443,11 @@ void SearchDialog::copyResultLink()
|
|||
qulonglong fsize = item->text(SR_SIZE_COL).toULongLong();
|
||||
QString fname = item->text(SR_NAME_COL);
|
||||
|
||||
RetroShareLink link;
|
||||
if (link.createFile(fname, fsize, fhash)) {
|
||||
std::cerr << "new link added to clipboard: " << link.toString().toStdString() << std::endl ;
|
||||
urls.push_back(link) ;
|
||||
}
|
||||
RetroShareLink link = RetroShareLink::createFile(fname, fsize, fhash);
|
||||
if (link.valid()) {
|
||||
std::cerr << "new link added to clipboard: " << link.toString().toStdString() << std::endl ;
|
||||
urls.push_back(link) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
RSLinkClipboard::copyLinks(urls) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue