We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd23dde commit 721cc0fCopy full SHA for 721cc0f
src/core/qgsprojectproperty.cpp
@@ -281,18 +281,15 @@ QgsPropertyKey::~QgsPropertyKey()
281
282
QVariant QgsPropertyKey::value() const
283
{
284
- QgsProperty * foundQgsProperty;
+ QgsProperty *foundQgsProperty = mProperties.value( name() );
285
286
- if ( 0 == ( foundQgsProperty = mProperties.value( name() ) ) )
287
- { // recurse down to next key
288
- return foundQgsProperty->value();
289
- }
290
- else
+ if ( !foundQgsProperty )
291
292
QgsDebugMsg( "key has null child" );
293
-
294
return QVariant(); // just return an QVariant::Invalid
295
}
+
+ return foundQgsProperty->value();
296
} // QVariant QgsPropertyKey::value()
297
298
0 commit comments