Commit 76e01478 authored by Pavel Vainerman's avatar Pavel Vainerman

minor fixes

parent 8523ce50
...@@ -623,7 +623,7 @@ const std::shared_ptr<UniSetManager> UniSetManager::itemM( const ObjectId id ) ...@@ -623,7 +623,7 @@ const std::shared_ptr<UniSetManager> UniSetManager::itemM( const ObjectId id )
//lock //lock
uniset_rwmutex_rlock lock(mlistMutex); uniset_rwmutex_rlock lock(mlistMutex);
for( auto& li : mlist ) for( const auto& li : mlist )
{ {
if ( li->getId() == id ) if ( li->getId() == id )
return li; return li;
...@@ -641,7 +641,7 @@ const std::shared_ptr<UniSetObject> UniSetManager::itemO( const ObjectId id ) ...@@ -641,7 +641,7 @@ const std::shared_ptr<UniSetObject> UniSetManager::itemO( const ObjectId id )
//lock //lock
uniset_rwmutex_rlock lock(olistMutex); uniset_rwmutex_rlock lock(olistMutex);
for( auto& li : olist ) for( const auto& li : olist )
{ {
if ( li->getId() == id ) if ( li->getId() == id )
return li; return li;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment