Skip to content

Commit 139d140

Browse files
committed
fix warning
(cherry picked from commit cd3adc0)
1 parent f2e87c9 commit 139d140

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
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: 5 additions & 9 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
*
@@ -124,7 +120,7 @@ class CORE_EXPORT QgsPropertyValue : public QgsProperty
124120
: value_( value )
125121
{}
126122

127-
virtual ~QgsPropertyValue() {}
123+
virtual ~QgsPropertyValue();
128124

129125
/** Returns true if is a QgsPropertyKey */
130126
virtual bool isKey() const override { return false; }
@@ -189,7 +185,7 @@ class CORE_EXPORT QgsPropertyKey : public QgsProperty
189185
{
190186
public:
191187
QgsPropertyKey( const QString &name = "" );
192-
virtual ~ QgsPropertyKey();
188+
virtual ~QgsPropertyKey();
193189

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

208204

209205
/// add the given property key
210-
QgsPropertyKey * addKey( const QString & keyName )
206+
QgsPropertyKey *addKey( const QString & keyName )
211207
{
212208
delete mProperties.take( keyName );
213209
mProperties.insert( keyName, new QgsPropertyKey( keyName ) );

0 commit comments

Comments
 (0)