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

This commit is contained in:
Chocobo1
2017-03-07 19:41:38 +08:00
parent 87384ca2a2
commit fa2128cbae
9 changed files with 38 additions and 44 deletions

View File

@@ -55,7 +55,7 @@ using namespace BitTorrent;
// name starts with a .
bool fileFilter(const std::string &f)
{
return !Utils::Fs::fileName(Utils::String::fromStdString(f)).startsWith('.');
return !Utils::Fs::fileName(QString::fromStdString(f)).startsWith('.');
}
TorrentCreatorThread::TorrentCreatorThread(QObject *parent)
@@ -163,6 +163,6 @@ void TorrentCreatorThread::run()
emit creationSuccess(m_savePath, parentPath);
}
catch (std::exception& e) {
emit creationFailure(Utils::String::fromStdString(e.what()));
emit creationFailure(QString::fromStdString(e.what()));
}
}