Skip to content

Commit

Permalink
QgsCoordinateTransform: set/reset mLastError in copy constructor and …
Browse files Browse the repository at this point in the history
…assignment operator to make cppcheck happy
  • Loading branch information
rouault committed Jun 1, 2020
1 parent 44a2b0f commit adc79b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgscoordinatetransform.cpp
Expand Up @@ -138,6 +138,7 @@ QgsCoordinateTransform::QgsCoordinateTransform( const QgsCoordinateTransform &o
#ifdef QGISDEBUG #ifdef QGISDEBUG
, mHasContext( o.mHasContext ) , mHasContext( o.mHasContext )
#endif #endif
, mLastError()
{ {
d = o.d; d = o.d;
} }
Expand All @@ -149,6 +150,7 @@ QgsCoordinateTransform &QgsCoordinateTransform::operator=( const QgsCoordinateTr
mHasContext = o.mHasContext; mHasContext = o.mHasContext;
#endif #endif
mContext = o.mContext; mContext = o.mContext;
mLastError = QString();
return *this; return *this;
} }


Expand Down

0 comments on commit adc79b4

Please sign in to comment.