Skip to content
Permalink
Browse files
Fix unused variable warning
  • Loading branch information
nyalldawson committed Jan 23, 2017
1 parent f3ac8bc commit 0d9b2238567797554780d184330962118ecead83
Showing with 9 additions and 1 deletion.
  1. +2 −0 python/core/qgsproperty.sip
  2. +1 −1 src/core/qgsproperty.cpp
  3. +6 −0 src/core/qgsproperty.h
@@ -54,6 +54,8 @@ class QgsPropertyDefinition

DataType dataType() const;

StandardPropertyTemplate standardTemplate() const;

};

class QgsProperty
@@ -32,7 +32,7 @@ QgsPropertyDefinition::QgsPropertyDefinition( const QString& name, const QString
, mDescription( description )
, mStandardType( type )
{
switch ( type )
switch ( mStandardType )
{
case Boolean:
mTypes = DataTypeBoolean;
@@ -141,6 +141,12 @@ class CORE_EXPORT QgsPropertyDefinition
*/
DataType dataType() const { return mTypes; }

/**
* Returns the property's standard template, if applicable. Non standard
* types will return the Custom template.
*/
StandardPropertyTemplate standardTemplate() const { return mStandardType; }

private:

QString mName;

0 comments on commit 0d9b223

Please sign in to comment.