* fix compilation warnings

This commit is contained in:
hagen 2016-06-01 00:00:00 +00:00
parent f62d25fa5f
commit 1b2ac38a50
12 changed files with 13 additions and 15 deletions

View file

@ -358,7 +358,7 @@ namespace tunnel
std::shared_ptr<OutboundTunnel> Tunnels::GetNextOutboundTunnel ()
{
if (!m_OutboundTunnels.size ()) return nullptr;
if (m_OutboundTunnels.empty ()) return nullptr;
uint32_t ind = rand () % m_OutboundTunnels.size (), i = 0;
std::shared_ptr<OutboundTunnel> tunnel;
for (auto it: m_OutboundTunnels)