mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-24 13:34:27 +00: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
7aa18dbb22
commit
58861c35b0
@ -2945,7 +2945,7 @@ void Session::setMaxConnectionsPerTorrent(int max)
|
||||
try {
|
||||
handle.set_max_connections(max);
|
||||
}
|
||||
catch (std::exception) {}
|
||||
catch (const std::exception &) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2967,7 +2967,7 @@ void Session::setMaxUploadsPerTorrent(int max)
|
||||
try {
|
||||
handle.set_max_uploads(max);
|
||||
}
|
||||
catch (std::exception) {}
|
||||
catch (const std::exception &) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user