Skip to content
Permalink
Browse files

Silence a clazy warning

  • Loading branch information
nyalldawson committed Jun 10, 2018
1 parent 3b89ee0 commit 798408b6ba132426cb0555310c3329681253ed3d
Showing with 14 additions and 0 deletions.
  1. +4 −0 python/core/auto_generated/qgsproject.sip.in
  2. +10 −0 src/core/qgsproject.h
@@ -1361,8 +1361,12 @@ Constructor for QgsProjectDirtyBlocker.
This will block dirtying the specified ``project`` for the lifetime of this object.
%End



~QgsProjectDirtyBlocker();

private:
QgsProjectDirtyBlocker( const QgsProjectDirtyBlocker &other );
};


@@ -1400,13 +1400,23 @@ class CORE_EXPORT QgsProjectDirtyBlocker
mProject->mDirtyBlockCount++;
}

//! QgsProjectDirtyBlocker cannot be copied
QgsProjectDirtyBlocker( const QgsProjectDirtyBlocker &other ) = delete;

//! QgsProjectDirtyBlocker cannot be copied
QgsProjectDirtyBlocker &operator=( const QgsProjectDirtyBlocker &other ) = delete;

~QgsProjectDirtyBlocker()
{
mProject->mDirtyBlockCount--;
}

private:
QgsProject *mProject = nullptr;

#ifdef SIP_RUN
QgsProjectDirtyBlocker( const QgsProjectDirtyBlocker &other );
#endif
};

/**

0 comments on commit 798408b

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