Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
(cherry picked from commit cd3adc0)
  • Loading branch information
jef-n committed Oct 9, 2016
1 parent f2e87c9 commit 139d140
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
12 changes: 12 additions & 0 deletions src/core/qgsprojectproperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
#include <QDomDocument>
#include <QStringList>

QgsProperty::QgsProperty()
{
}

QgsProperty::~QgsProperty()
{
}

QgsPropertyValue::~QgsPropertyValue()
{
}

void QgsPropertyValue::dump( int tabs ) const
{
QString tabString;
Expand Down
14 changes: 5 additions & 9 deletions src/core/qgsprojectproperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,8 @@ class QDomDocument;
class CORE_EXPORT QgsProperty
{
public:

QgsProperty()
{}

virtual ~ QgsProperty()
{}
QgsProperty();
virtual ~QgsProperty();

/** Dumps out the keys and values
*
Expand Down Expand Up @@ -124,7 +120,7 @@ class CORE_EXPORT QgsPropertyValue : public QgsProperty
: value_( value )
{}

virtual ~QgsPropertyValue() {}
virtual ~QgsPropertyValue();

/** Returns true if is a QgsPropertyKey */
virtual bool isKey() const override { return false; }
Expand Down Expand Up @@ -189,7 +185,7 @@ class CORE_EXPORT QgsPropertyKey : public QgsProperty
{
public:
QgsPropertyKey( const QString &name = "" );
virtual ~ QgsPropertyKey();
virtual ~QgsPropertyKey();

/// every key has a name
// @{
Expand All @@ -207,7 +203,7 @@ class CORE_EXPORT QgsPropertyKey : public QgsProperty


/// add the given property key
QgsPropertyKey * addKey( const QString & keyName )
QgsPropertyKey *addKey( const QString & keyName )
{
delete mProperties.take( keyName );
mProperties.insert( keyName, new QgsPropertyKey( keyName ) );
Expand Down

0 comments on commit 139d140

Please sign in to comment.