Skip to content

Commit b51e3c7

Browse files
committedOct 9, 2016
fix warning
(cherry picked from commit cd3adc0)
1 parent 8d690fa commit b51e3c7

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed
 

‎src/core/qgsprojectproperty.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@
2121
#include <QDomDocument>
2222
#include <QStringList>
2323

24+
QgsProperty::QgsProperty()
25+
{
26+
}
27+
28+
QgsProperty::~QgsProperty()
29+
{
30+
}
31+
32+
QgsPropertyValue::~QgsPropertyValue()
33+
{
34+
}
35+
2436
void QgsPropertyValue::dump( int tabs ) const
2537
{
2638
QString tabString;

‎src/core/qgsprojectproperty.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@ class QDomDocument;
4747
class CORE_EXPORT QgsProperty
4848
{
4949
public:
50-
51-
QgsProperty()
52-
{}
53-
54-
virtual ~QgsProperty()
55-
{}
50+
QgsProperty();
51+
virtual ~QgsProperty();
5652

5753
/** Dumps out the keys and values
5854
*
@@ -125,7 +121,7 @@ class CORE_EXPORT QgsPropertyValue : public QgsProperty
125121
: value_( value )
126122
{}
127123

128-
virtual ~QgsPropertyValue() {}
124+
virtual ~QgsPropertyValue();
129125

130126
/** Returns true if is a QgsPropertyKey */
131127
virtual bool isKey() const override { return false; }
@@ -208,7 +204,7 @@ class CORE_EXPORT QgsPropertyKey : public QgsProperty
208204

209205

210206
/// add the given property key
211-
QgsPropertyKey * addKey( const QString & keyName )
207+
QgsPropertyKey *addKey( const QString & keyName )
212208
{
213209
delete mProperties.take( keyName );
214210
mProperties.insert( keyName, new QgsPropertyKey( keyName ) );

0 commit comments

Comments
 (0)
Please sign in to comment.