mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 20:06:38 -05: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
|
|
@ -1394,14 +1394,12 @@ void FriendList::copyFullCertificate()
|
|||
{
|
||||
QTreeWidgetItem *c = getCurrentPeer();
|
||||
QList<RetroShareLink> urls;
|
||||
RetroShareLink link ;
|
||||
|
||||
link.createCertificate(RsPeerId(getRsId(c))) ;
|
||||
RetroShareLink link = RetroShareLink::createCertificate(RsPeerId(getRsId(c)));
|
||||
urls.push_back(link);
|
||||
|
||||
std::cerr << "link: " << std::endl;
|
||||
|
||||
std::cerr<< link.toString().toStdString() << std::endl;
|
||||
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -271,10 +271,10 @@ void MimeTextEdit::pasteLink()
|
|||
|
||||
void MimeTextEdit::pasteOwnCertificateLink()
|
||||
{
|
||||
RetroShareLink link;
|
||||
RsPeerId ownId = rsPeers->getOwnId();
|
||||
RetroShareLink link = RetroShareLink::createCertificate(ownId);
|
||||
|
||||
if (link.createCertificate(ownId)) {
|
||||
if (link.valid()) {
|
||||
insertHtml(link.toHtml() + " ");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue