Browse Source

Follow project coding style.

adaptive-webui-19844
sledgehammer999 7 years ago
parent
commit
1b8cda7924
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 6
      src/base/bittorrent/private/filterparserthread.cpp
  2. 8
      src/base/bittorrent/session.cpp

6
src/base/bittorrent/private/filterparserthread.cpp

@ -444,7 +444,7 @@ int FilterParserThread::parseP2BFilterFile()
m_filter.add_rule(first, last, libt::ip_filter::blocked); m_filter.add_rule(first, last, libt::ip_filter::blocked);
++ruleCount; ++ruleCount;
} }
catch(std::exception &) {} catch (std::exception &) {}
} }
} }
else if (version == 3) { else if (version == 3) {
@ -494,7 +494,7 @@ int FilterParserThread::parseP2BFilterFile()
m_filter.add_rule(first, last, libt::ip_filter::blocked); m_filter.add_rule(first, last, libt::ip_filter::blocked);
++ruleCount; ++ruleCount;
} }
catch(std::exception &) {} catch (std::exception &) {}
if (m_abort) return ruleCount; if (m_abort) return ruleCount;
} }
@ -553,7 +553,7 @@ void FilterParserThread::run()
try { try {
emit IPFilterParsed(ruleCount); emit IPFilterParsed(ruleCount);
} }
catch(std::exception &) { catch (std::exception &) {
emit IPFilterError(); emit IPFilterError();
} }

8
src/base/bittorrent/session.cpp

@ -1270,7 +1270,7 @@ void Session::configurePeerClasses()
, libt::address_v6::from_string("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff") , libt::address_v6::from_string("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")
, 1 << libt::session::global_peer_class_id); , 1 << libt::session::global_peer_class_id);
} }
catch(std::exception &) {} catch (std::exception &) {}
#endif #endif
if (ignoreLimitsOnLAN()) { if (ignoreLimitsOnLAN()) {
// local networks // local networks
@ -1309,7 +1309,7 @@ void Session::configurePeerClasses()
, libt::address_v6::from_string("::1") , libt::address_v6::from_string("::1")
, 1 << libt::session::local_peer_class_id); , 1 << libt::session::local_peer_class_id);
} }
catch(std::exception &) {} catch (std::exception &) {}
#endif #endif
} }
m_nativeSession->set_peer_class_filter(f); m_nativeSession->set_peer_class_filter(f);
@ -2696,7 +2696,7 @@ void Session::setMaxConnectionsPerTorrent(int max)
try { try {
handle.set_max_connections(max); handle.set_max_connections(max);
} }
catch(std::exception) {} catch (std::exception) {}
} }
} }
} }
@ -2718,7 +2718,7 @@ void Session::setMaxUploadsPerTorrent(int max)
try { try {
handle.set_max_uploads(max); handle.set_max_uploads(max);
} }
catch(std::exception) {} catch (std::exception) {}
} }
} }
} }

Loading…
Cancel
Save