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/live_effects/parameter | |
| 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/live_effects/parameter')
23 files changed, 48 insertions, 48 deletions
diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h index 1aa0e3c4a..2437c97c7 100644 --- a/src/live_effects/parameter/bool.h +++ b/src/live_effects/parameter/bool.h @@ -42,8 +42,8 @@ public: inline operator bool() const { return value; }; private: - BoolParam(const BoolParam&); - BoolParam& operator=(const BoolParam&); + BoolParam(const BoolParam&) = delete; + BoolParam& operator=(const BoolParam&) = delete; bool value; bool defvalue; diff --git a/src/live_effects/parameter/colorpicker.h b/src/live_effects/parameter/colorpicker.h index 84ae2f6d5..34b11284f 100644 --- a/src/live_effects/parameter/colorpicker.h +++ b/src/live_effects/parameter/colorpicker.h @@ -37,8 +37,8 @@ public: const guint32 get_value() const { return value; }; private: - ColorPickerParam(const ColorPickerParam&); - ColorPickerParam& operator=(const ColorPickerParam&); + ColorPickerParam(const ColorPickerParam&) = delete; + ColorPickerParam& operator=(const ColorPickerParam&) = delete; guint32 value; guint32 defvalue; }; diff --git a/src/live_effects/parameter/enum.h b/src/live_effects/parameter/enum.h index 82eaa6d43..eef176591 100644 --- a/src/live_effects/parameter/enum.h +++ b/src/live_effects/parameter/enum.h @@ -96,8 +96,8 @@ public: } private: - EnumParam(const EnumParam&); - EnumParam& operator=(const EnumParam&); + EnumParam(const EnumParam&) = delete; + EnumParam& operator=(const EnumParam&) = delete; E value; E defvalue; diff --git a/src/live_effects/parameter/fontbutton.h b/src/live_effects/parameter/fontbutton.h index e2d0e1bb2..f028492a7 100644 --- a/src/live_effects/parameter/fontbutton.h +++ b/src/live_effects/parameter/fontbutton.h @@ -37,8 +37,8 @@ public: const Glib::ustring get_value() const { return defvalue; }; private: - FontButtonParam(const FontButtonParam&); - FontButtonParam& operator=(const FontButtonParam&); + FontButtonParam(const FontButtonParam&) = delete; + FontButtonParam& operator=(const FontButtonParam&) = delete; Glib::ustring value; Glib::ustring defvalue; diff --git a/src/live_effects/parameter/hidden.h b/src/live_effects/parameter/hidden.h index b41c6c93c..e6df8ceea 100644 --- a/src/live_effects/parameter/hidden.h +++ b/src/live_effects/parameter/hidden.h @@ -46,8 +46,8 @@ public: const Glib::ustring get_value() const { return value; }; private: - HiddenParam(const HiddenParam&); - HiddenParam& operator=(const HiddenParam&); + HiddenParam(const HiddenParam&) = delete; + HiddenParam& operator=(const HiddenParam&) = delete; Glib::ustring value; Glib::ustring defvalue; }; diff --git a/src/live_effects/parameter/item-reference.h b/src/live_effects/parameter/item-reference.h index 597e7ba51..603453ec5 100644 --- a/src/live_effects/parameter/item-reference.h +++ b/src/live_effects/parameter/item-reference.h @@ -32,8 +32,8 @@ protected: virtual bool _acceptObject(SPObject * const obj) const; private: - ItemReference(const ItemReference&); - ItemReference& operator=(const ItemReference&); + ItemReference(const ItemReference&) = delete; + ItemReference& operator=(const ItemReference&) = delete; }; } // namespace LivePathEffect diff --git a/src/live_effects/parameter/item.h b/src/live_effects/parameter/item.h index d32098db5..7ccfc6a9f 100644 --- a/src/live_effects/parameter/item.h +++ b/src/live_effects/parameter/item.h @@ -68,8 +68,8 @@ protected: gchar * defvalue; private: - ItemParam(const ItemParam&); - ItemParam& operator=(const ItemParam&); + ItemParam(const ItemParam&) = delete; + ItemParam& operator=(const ItemParam&) = delete; }; diff --git a/src/live_effects/parameter/message.h b/src/live_effects/parameter/message.h index fd850a767..255f4b016 100644 --- a/src/live_effects/parameter/message.h +++ b/src/live_effects/parameter/message.h @@ -39,8 +39,8 @@ public: private: Gtk::Label * _label; int _min_height; - MessageParam(const MessageParam&); - MessageParam& operator=(const MessageParam&); + MessageParam(const MessageParam&) = delete; + MessageParam& operator=(const MessageParam&) = delete; const gchar * message; const gchar * defmessage; }; diff --git a/src/live_effects/parameter/originalitem.h b/src/live_effects/parameter/originalitem.h index 168728f86..23720c74a 100644 --- a/src/live_effects/parameter/originalitem.h +++ b/src/live_effects/parameter/originalitem.h @@ -35,8 +35,8 @@ protected: void on_select_original_button_click(); private: - OriginalItemParam(const OriginalItemParam&); - OriginalItemParam& operator=(const OriginalItemParam&); + OriginalItemParam(const OriginalItemParam&) = delete; + OriginalItemParam& operator=(const OriginalItemParam&) = delete; }; diff --git a/src/live_effects/parameter/originalpath.h b/src/live_effects/parameter/originalpath.h index ec80d1026..6e9888d42 100644 --- a/src/live_effects/parameter/originalpath.h +++ b/src/live_effects/parameter/originalpath.h @@ -42,8 +42,8 @@ protected: private: bool _from_original_d; - OriginalPathParam(const OriginalPathParam&); - OriginalPathParam& operator=(const OriginalPathParam&); + OriginalPathParam(const OriginalPathParam&) = delete; + OriginalPathParam& operator=(const OriginalPathParam&) = delete; }; diff --git a/src/live_effects/parameter/originalpatharray.h b/src/live_effects/parameter/originalpatharray.h index 8c972fd96..36d5b78a6 100644 --- a/src/live_effects/parameter/originalpatharray.h +++ b/src/live_effects/parameter/originalpatharray.h @@ -111,8 +111,8 @@ private: bool _from_original_d; bool _allow_only_bspline_spiro; void update(); - OriginalPathArrayParam(const OriginalPathArrayParam&); - OriginalPathArrayParam& operator=(const OriginalPathArrayParam&); + OriginalPathArrayParam(const OriginalPathArrayParam&) = delete; + OriginalPathArrayParam& operator=(const OriginalPathArrayParam&) = delete; }; } //namespace LivePathEffect diff --git a/src/live_effects/parameter/parameter.h b/src/live_effects/parameter/parameter.h index aa4212f15..33d91d4df 100644 --- a/src/live_effects/parameter/parameter.h +++ b/src/live_effects/parameter/parameter.h @@ -93,8 +93,8 @@ protected: void param_write_to_repr(const char * svgd); private: - Parameter(const Parameter&); - Parameter& operator=(const Parameter&); + Parameter(const Parameter&) = delete; + Parameter& operator=(const Parameter&) = delete; }; @@ -143,8 +143,8 @@ protected: private: bool on_button_release(GdkEventButton* button_event); - ScalarParam(const ScalarParam&); - ScalarParam& operator=(const ScalarParam&); + ScalarParam(const ScalarParam&) = delete; + ScalarParam& operator=(const ScalarParam&) = delete; }; } //namespace LivePathEffect diff --git a/src/live_effects/parameter/path-reference.h b/src/live_effects/parameter/path-reference.h index c32d063f6..ccd94dd1d 100644 --- a/src/live_effects/parameter/path-reference.h +++ b/src/live_effects/parameter/path-reference.h @@ -32,8 +32,8 @@ protected: virtual bool _acceptObject(SPObject * const obj) const; private: - PathReference(const PathReference&); - PathReference& operator=(const PathReference&); + PathReference(const PathReference&) = delete; + PathReference& operator=(const PathReference&) = delete; }; } // namespace LivePathEffect diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h index 635056772..998874980 100644 --- a/src/live_effects/parameter/path.h +++ b/src/live_effects/parameter/path.h @@ -98,8 +98,8 @@ private: bool _copy_button; bool _paste_button; bool _link_button; - PathParam(const PathParam&); - PathParam& operator=(const PathParam&); + PathParam(const PathParam&) = delete; + PathParam& operator=(const PathParam&) = delete; }; diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index ea0110100..9d4164c9b 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -56,8 +56,8 @@ public: virtual void addKnotHolderEntities(KnotHolder *knotholder, SPItem *item); friend class PointParamKnotHolderEntity; private: - PointParam(const PointParam&); - PointParam& operator=(const PointParam&); + PointParam(const PointParam&) = delete; + PointParam& operator=(const PointParam&) = delete; bool on_button_release(GdkEventButton* button_event); Geom::Point defvalue; bool liveupdate; diff --git a/src/live_effects/parameter/powerstrokepointarray.h b/src/live_effects/parameter/powerstrokepointarray.h index a1d4db3ca..d028d706d 100644 --- a/src/live_effects/parameter/powerstrokepointarray.h +++ b/src/live_effects/parameter/powerstrokepointarray.h @@ -53,8 +53,8 @@ public: friend class PowerStrokePointArrayParamKnotHolderEntity; private: - PowerStrokePointArrayParam(const PowerStrokePointArrayParam&); - PowerStrokePointArrayParam& operator=(const PowerStrokePointArrayParam&); + PowerStrokePointArrayParam(const PowerStrokePointArrayParam&) = delete; + PowerStrokePointArrayParam& operator=(const PowerStrokePointArrayParam&) = delete; SPKnotShapeType knot_shape; SPKnotModeType knot_mode; diff --git a/src/live_effects/parameter/random.h b/src/live_effects/parameter/random.h index a2c3712a1..9f0114ad2 100644 --- a/src/live_effects/parameter/random.h +++ b/src/live_effects/parameter/random.h @@ -61,8 +61,8 @@ private: long setup_seed(long); gdouble rand(); - RandomParam(const RandomParam&); - RandomParam& operator=(const RandomParam&); + RandomParam(const RandomParam&) = delete; + RandomParam& operator=(const RandomParam&) = delete; }; } //namespace LivePathEffect diff --git a/src/live_effects/parameter/satellitesarray.h b/src/live_effects/parameter/satellitesarray.h index 3039eb432..e7d61af22 100644 --- a/src/live_effects/parameter/satellitesarray.h +++ b/src/live_effects/parameter/satellitesarray.h @@ -65,8 +65,8 @@ protected: KnotHolder *_knoth; private: - SatellitesArrayParam(const SatellitesArrayParam &); - SatellitesArrayParam &operator=(const SatellitesArrayParam &); + SatellitesArrayParam(const SatellitesArrayParam &) = delete; + SatellitesArrayParam &operator=(const SatellitesArrayParam &) = delete; SPKnotShapeType _knot_shape; SPKnotModeType _knot_mode; diff --git a/src/live_effects/parameter/text.h b/src/live_effects/parameter/text.h index a9de26a52..51651edcf 100644 --- a/src/live_effects/parameter/text.h +++ b/src/live_effects/parameter/text.h @@ -53,8 +53,8 @@ public: const Glib::ustring get_value() const { return value; }; private: - TextParam(const TextParam&); - TextParam& operator=(const TextParam&); + TextParam(const TextParam&) = delete; + TextParam& operator=(const TextParam&) = delete; double anchor_x; double anchor_y; bool _hide_canvas_text; diff --git a/src/live_effects/parameter/togglebutton.h b/src/live_effects/parameter/togglebutton.h index c5f8a3c28..6d42c5155 100644 --- a/src/live_effects/parameter/togglebutton.h +++ b/src/live_effects/parameter/togglebutton.h @@ -55,8 +55,8 @@ public: virtual void param_update_default(const gchar * default_value); private: - ToggleButtonParam(const ToggleButtonParam&); - ToggleButtonParam& operator=(const ToggleButtonParam&); + ToggleButtonParam(const ToggleButtonParam&) = delete; + ToggleButtonParam& operator=(const ToggleButtonParam&) = delete; void refresh_button(); bool value; diff --git a/src/live_effects/parameter/transformedpoint.h b/src/live_effects/parameter/transformedpoint.h index 8b92d81ba..b2d3203ac 100644 --- a/src/live_effects/parameter/transformedpoint.h +++ b/src/live_effects/parameter/transformedpoint.h @@ -59,8 +59,8 @@ public: virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item); private: - TransformedPointParam(const TransformedPointParam&); - TransformedPointParam& operator=(const TransformedPointParam&); + TransformedPointParam(const TransformedPointParam&) = delete; + TransformedPointParam& operator=(const TransformedPointParam&) = delete; Geom::Point defvalue; diff --git a/src/live_effects/parameter/unit.h b/src/live_effects/parameter/unit.h index 86e1a24b3..8e3e3cb69 100644 --- a/src/live_effects/parameter/unit.h +++ b/src/live_effects/parameter/unit.h @@ -44,8 +44,8 @@ private: Inkscape::Util::Unit const *unit; Inkscape::Util::Unit const *defunit; - UnitParam(const UnitParam&); - UnitParam& operator=(const UnitParam&); + UnitParam(const UnitParam&) = delete; + UnitParam& operator=(const UnitParam&) = delete; }; } //namespace LivePathEffect diff --git a/src/live_effects/parameter/vector.h b/src/live_effects/parameter/vector.h index 8c842e805..412d4f0bb 100644 --- a/src/live_effects/parameter/vector.h +++ b/src/live_effects/parameter/vector.h @@ -58,8 +58,8 @@ public: virtual void addKnotHolderEntities(KnotHolder *knotholder, SPItem *item); private: - VectorParam(const VectorParam&); - VectorParam& operator=(const VectorParam&); + VectorParam(const VectorParam&) = delete; + VectorParam& operator=(const VectorParam&) = delete; Geom::Point defvalue; |
