mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* fix compilation warnings
This commit is contained in:
parent
f62d25fa5f
commit
1b2ac38a50
12 changed files with 13 additions and 15 deletions
|
@ -849,7 +849,8 @@ namespace data
|
|||
template<typename Filter>
|
||||
std::shared_ptr<const RouterInfo> NetDb::GetRandomRouter (Filter filter) const
|
||||
{
|
||||
if (!m_RouterInfos.size ()) return 0;
|
||||
if (m_RouterInfos.empty())
|
||||
return 0;
|
||||
uint32_t ind = rand () % m_RouterInfos.size ();
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue