diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 17:02:56 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | 004e50d84773242a000f5cadb89466bbc793e1a8 (patch) | |
| tree | 019c32e65caa08fe7cf90b521787531a7b1d2225 /src/snap-candidate.h | |
| parent | Run clang-tidy’s modernize-use-nullptr pass. (diff) | |
| download | inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.tar.gz inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.zip | |
Run clang-tidy’s modernize-use-equals-default pass.
This replaces empty constructors and destructors with the default
keyword.
Diffstat (limited to 'src/snap-candidate.h')
| -rw-r--r-- | src/snap-candidate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/snap-candidate.h b/src/snap-candidate.h index 54e33e1a8..72fdbec4b 100644 --- a/src/snap-candidate.h +++ b/src/snap-candidate.h @@ -28,7 +28,7 @@ namespace Inkscape { class SnapCandidatePoint { public: - SnapCandidatePoint() {}; // only needed / used for resizing() of a vector in seltrans.cpp; do not use uninitialized instances! + SnapCandidatePoint() = default;; // only needed / used for resizing() of a vector in seltrans.cpp; do not use uninitialized instances! SnapCandidatePoint(Geom::Point const &point, Inkscape::SnapSourceType const source, long const source_num, Inkscape::SnapTargetType const target, Geom::OptRect const &bbox) : _point(point), @@ -113,7 +113,7 @@ class SnapCandidateItem public: SnapCandidateItem(SPItem* item, bool clip_or_mask, Geom::Affine additional_affine) : item(item), clip_or_mask(clip_or_mask), additional_affine(additional_affine) {} - ~SnapCandidateItem() {}; + ~SnapCandidateItem() = default;; SPItem* item; // An item that is to be considered for snapping to bool clip_or_mask; // If true, then item refers to a clipping path or a mask @@ -132,7 +132,7 @@ class SnapCandidatePath public: SnapCandidatePath(Geom::PathVector* path, SnapTargetType target, Geom::OptRect bbox, bool edited = false) : path_vector(path), target_type(target), target_bbox(bbox), currently_being_edited(edited) {}; - ~SnapCandidatePath() {}; + ~SnapCandidatePath() = default;; Geom::PathVector* path_vector; SnapTargetType target_type; |
