mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 10:18:20 +03:00
Fix compile warnings on gcc 8
The warning was: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
This commit is contained in:
parent
0d6deca15c
commit
7a93fae6e4
1 changed files with 2 additions and 2 deletions
|
@ -2945,7 +2945,7 @@ void Session::setMaxConnectionsPerTorrent(int max)
|
||||||
try {
|
try {
|
||||||
handle.set_max_connections(max);
|
handle.set_max_connections(max);
|
||||||
}
|
}
|
||||||
catch (std::exception) {}
|
catch (const std::exception &) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2967,7 +2967,7 @@ void Session::setMaxUploadsPerTorrent(int max)
|
||||||
try {
|
try {
|
||||||
handle.set_max_uploads(max);
|
handle.set_max_uploads(max);
|
||||||
}
|
}
|
||||||
catch (std::exception) {}
|
catch (const std::exception &) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue