Replace Utils::String::toStdString() by QString::toStdString()

This commit is contained in:
Chocobo1
2017-03-06 23:51:35 +08:00
parent 7539bee5c5
commit ffdcfe9686
9 changed files with 34 additions and 40 deletions

View File

@@ -65,8 +65,8 @@ libtorrent::entry Peer::toEntry(bool noPeerId) const
{
libtorrent::entry::dictionary_type peerMap;
if (!noPeerId)
peerMap["id"] = libtorrent::entry(Utils::String::toStdString(peerId));
peerMap["ip"] = libtorrent::entry(Utils::String::toStdString(ip));
peerMap["id"] = libtorrent::entry(peerId.toStdString());
peerMap["ip"] = libtorrent::entry(ip.toStdString());
peerMap["port"] = libtorrent::entry(port);
return libtorrent::entry(peerMap);