Skip to content
Permalink
Browse files

Fix #9319 (copy of QgsExpression crashes)

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 37ba8e41871eb12d0b76c889246570656b222623
Showing with 7 additions and 0 deletions.
  1. +4 −0 python/core/qgsexpression.sip
  2. +3 −0 src/core/qgsexpression.h
@@ -454,4 +454,8 @@ class QgsExpression

protected:
void initGeomCalculator();

private:
QgsExpression( const QgsExpression& );
QgsExpression & operator=( const QgsExpression& );
};
@@ -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 );

0 comments on commit 37ba8e4

Please sign in to comment.
You can’t perform that action at this time.