Browse Source

Merge pull request #8854 from Chocobo1/gcc8

Fix compile warnings on gcc 8
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
7242d68c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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