Skip to content

Commit

Permalink
Fix #9319 (copy of QgsExpression crashes)
Browse files Browse the repository at this point in the history
Disabled the copy constructor for now (later we may introduce implicit sharing)
  • Loading branch information
wonder-sk committed Oct 22, 2014
1 parent 1ead57f commit 37ba8e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/core/qgsexpression.sip
Expand Up @@ -454,4 +454,8 @@ class QgsExpression

protected:
void initGeomCalculator();

private:
QgsExpression( const QgsExpression& );
QgsExpression & operator=( const QgsExpression& );
};
3 changes: 3 additions & 0 deletions src/core/qgsexpression.h
Expand Up @@ -646,6 +646,9 @@ class CORE_EXPORT QgsExpression
static void initFunctionHelp();
static QHash<QString, QString> gFunctionHelpTexts;
static QHash<QString, QString> gGroups;

private:
Q_DISABLE_COPY( QgsExpression ) // for now - until we have proper copy constructor / implicit sharing
};

Q_DECLARE_METATYPE( QgsExpression::Interval );
Expand Down

0 comments on commit 37ba8e4

Please sign in to comment.