Browse Source

Fix compile warnings on gcc 8

The warning was:
warning: catching polymorphic type ‘class std::exception’ by value
[-Wcatch-value=]
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
58861c35b0
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -2945,7 +2945,7 @@ void Session::setMaxConnectionsPerTorrent(int max) @@ -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) @@ -2967,7 +2967,7 @@ void Session::setMaxUploadsPerTorrent(int max)
try {
handle.set_max_uploads(max);
}
catch (std::exception) {}
catch (const std::exception &) {}
}
}
}

Loading…
Cancel
Save