Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Silence a clazy warning
- Loading branch information
Showing
with
14 additions
and
0 deletions.
-
+4
−0
python/core/auto_generated/qgsproject.sip.in
-
+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 |
|
|
}; |
|
|
|
|
|
/** |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.