diff --git a/src/core/qgsproject.cpp b/src/core/qgsproject.cpp index 56fd5f4ec25..b6f9bb4783d 100644 --- a/src/core/qgsproject.cpp +++ b/src/core/qgsproject.cpp @@ -191,7 +191,7 @@ QgsProperty *addKey_( QString const &scope, return currentProperty; } - else if ( nextProperty = currentProperty->find( keySequence.first() ) ) + else if (( nextProperty = currentProperty->find( keySequence.first() ) ) ) { currentProperty = dynamic_cast( nextProperty ); @@ -206,7 +206,7 @@ QgsProperty *addKey_( QString const &scope, } else // the next subkey doesn't exist, so add it { - if ( newPropertyKey = currentProperty->addKey( keySequence.first() ) ) + if (( newPropertyKey = currentProperty->addKey( keySequence.first() ) ) ) { currentProperty = newPropertyKey; }