Merge pull request #9553 from sledgehammer999/misc_fixes

Misc fixes
This commit is contained in:
sledgehammer999 2018-09-22 20:09:54 +03:00 committed by GitHub
commit 6c0af1b078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -158,6 +158,7 @@ namespace BitTorrent
class TorrentHandle : public QObject
{
Q_DISABLE_COPY(TorrentHandle)
Q_DECLARE_TR_FUNCTIONS(BitTorrent::TorrentHandle)
public:
static const qreal USE_GLOBAL_RATIO;

View file

@ -65,7 +65,7 @@ namespace
try {
info = {exeName, versionStr.left(idx)};
}
catch (const std::runtime_error &err) {
catch (const std::runtime_error &) {
return false;
}