diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-04-15 00:07:21 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-12 18:59:52 +0000 |
| commit | e4afb390e9d056f4e7758eda7d432612fbcb167c (patch) | |
| tree | 631727cecded1c3eb5cf966ea95d30cfd5799f2b /src/display | |
| parent | Migrated object-test and sp-gradient-test to gtest (diff) | |
| download | inkscape-e4afb390e9d056f4e7758eda7d432612fbcb167c.tar.gz inkscape-e4afb390e9d056f4e7758eda7d432612fbcb167c.zip | |
Run clang-tidy’s modernize-use-equals-delete pass.
Adds a delete specifier on constructors, destructors or assignment
methods that should never be called, ensuring they actually never will.
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/canvas-axonomgrid.h | 4 | ||||
| -rw-r--r-- | src/display/canvas-grid.h | 8 | ||||
| -rw-r--r-- | src/display/canvas-temporary-item-list.h | 4 | ||||
| -rw-r--r-- | src/display/canvas-temporary-item.h | 4 | ||||
| -rw-r--r-- | src/display/curve.h | 4 | ||||
| -rw-r--r-- | src/display/snap-indicator.h | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/src/display/canvas-axonomgrid.h b/src/display/canvas-axonomgrid.h index 5e06ae564..4231520e7 100644 --- a/src/display/canvas-axonomgrid.h +++ b/src/display/canvas-axonomgrid.h @@ -52,8 +52,8 @@ protected: virtual Gtk::Widget * newSpecificWidget(); private: - CanvasAxonomGrid(const CanvasAxonomGrid&); - CanvasAxonomGrid& operator=(const CanvasAxonomGrid&); + CanvasAxonomGrid(const CanvasAxonomGrid&) = delete; + CanvasAxonomGrid& operator=(const CanvasAxonomGrid&) = delete; void updateWidgets(); diff --git a/src/display/canvas-grid.h b/src/display/canvas-grid.h index c15cde656..a02b5d5fd 100644 --- a/src/display/canvas-grid.h +++ b/src/display/canvas-grid.h @@ -135,8 +135,8 @@ protected: Inkscape::UI::Widget::AlignmentSelector *_as_alignment; private: - CanvasGrid(const CanvasGrid&); - CanvasGrid& operator=(const CanvasGrid&); + CanvasGrid(const CanvasGrid&) = delete; + CanvasGrid& operator=(const CanvasGrid&) = delete; }; @@ -163,8 +163,8 @@ protected: virtual Gtk::Widget * newSpecificWidget(); private: - CanvasXYGrid(const CanvasXYGrid&); - CanvasXYGrid& operator=(const CanvasXYGrid&); + CanvasXYGrid(const CanvasXYGrid&) = delete; + CanvasXYGrid& operator=(const CanvasXYGrid&) = delete; void updateWidgets(); diff --git a/src/display/canvas-temporary-item-list.h b/src/display/canvas-temporary-item-list.h index 471bb99b9..c3e936b19 100644 --- a/src/display/canvas-temporary-item-list.h +++ b/src/display/canvas-temporary-item-list.h @@ -39,8 +39,8 @@ protected: void _item_timeout (TemporaryItem * tempitem); private: - TemporaryItemList(const TemporaryItemList&); - TemporaryItemList& operator=(const TemporaryItemList&); + TemporaryItemList(const TemporaryItemList&) = delete; + TemporaryItemList& operator=(const TemporaryItemList&) = delete; }; } //namespace Display diff --git a/src/display/canvas-temporary-item.h b/src/display/canvas-temporary-item.h index d7d3951f1..92b16b1ab 100644 --- a/src/display/canvas-temporary-item.h +++ b/src/display/canvas-temporary-item.h @@ -38,8 +38,8 @@ protected: static int _timeout(void* data); ///< callback for when lifetime expired private: - TemporaryItem(const TemporaryItem&); - TemporaryItem& operator=(const TemporaryItem&); + TemporaryItem(const TemporaryItem&) = delete; + TemporaryItem& operator=(const TemporaryItem&) = delete; }; } //namespace Display diff --git a/src/display/curve.h b/src/display/curve.h index 87b9984a8..b79d41ebe 100644 --- a/src/display/curve.h +++ b/src/display/curve.h @@ -88,8 +88,8 @@ protected: private: // Don't implement these: - SPCurve(const SPCurve&); - SPCurve& operator=(const SPCurve&); + SPCurve(const SPCurve&) = delete; + SPCurve& operator=(const SPCurve&) = delete; }; #endif // !SEEN_DISPLAY_CURVE_H diff --git a/src/display/snap-indicator.h b/src/display/snap-indicator.h index 30040d99c..d4a144002 100644 --- a/src/display/snap-indicator.h +++ b/src/display/snap-indicator.h @@ -49,8 +49,8 @@ protected: SPDesktop *_desktop; private: - SnapIndicator(const SnapIndicator&); - SnapIndicator& operator=(const SnapIndicator&); + SnapIndicator(const SnapIndicator&) = delete; + SnapIndicator& operator=(const SnapIndicator&) = delete; }; } //namespace Display |
