fix(Space): increment value object iterator in get_space_nc

This commit is contained in:
Tomasz Sowa 2022-08-10 12:40:46 +02:00
parent 663233fe2a
commit 7eba07a439
1 changed files with 2 additions and 2 deletions

View File

@ -2071,7 +2071,7 @@ Space * Space::get_space_nc(const wchar_t * field)
{ {
ObjectType::iterator i = value.value_object.begin(); ObjectType::iterator i = value.value_object.begin();
while( i != value.value_object.end() ) for( ; i != value.value_object.end() ; ++i )
{ {
if( is_equal_nc(field, i->first.c_str()) ) if( is_equal_nc(field, i->first.c_str()) )
{ {
@ -2096,7 +2096,7 @@ const Space * Space::get_space_nc(const wchar_t * field) const
{ {
ObjectType::const_iterator i = value.value_object.cbegin(); ObjectType::const_iterator i = value.value_object.cbegin();
while( i != value.value_object.cend() ) for( ; i != value.value_object.cend() ; ++i )
{ {
if( is_equal_nc(field, i->first.c_str()) ) if( is_equal_nc(field, i->first.c_str()) )
{ {