Skip to content
Permalink
Browse files

QgsCoordinateTransform: set/reset mLastError in copy constructor and …

…assignment operator to make cppcheck happy
  • Loading branch information
rouault committed Jun 1, 2020
1 parent 44a2b0f commit adc79b44c637602f6c1b4457bcf26210bb830ae2
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgscoordinatetransform.cpp
@@ -138,6 +138,7 @@ QgsCoordinateTransform::QgsCoordinateTransform( const QgsCoordinateTransform &o
#ifdef QGISDEBUG
, mHasContext( o.mHasContext )
#endif
, mLastError()
{
d = o.d;
}
@@ -149,6 +150,7 @@ QgsCoordinateTransform &QgsCoordinateTransform::operator=( const QgsCoordinateTr
mHasContext = o.mHasContext;
#endif
mContext = o.mContext;
mLastError = QString();
return *this;
}

0 comments on commit adc79b4

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