diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 10:46:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch) | |
| tree | 7c6044fd3a17a2665841959dac9b3b2110b27924 /src/snap.h | |
| parent | Run clang-tidy’s modernize-use-override pass. (diff) | |
| download | inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.tar.gz inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.zip | |
Run clang-tidy’s modernize-use-nullptr pass.
This replaces all NULL or 0 with nullptr when assigned to or returned as
a pointer.
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/snap.h b/src/snap.h index 2d84b889c..18865935e 100644 --- a/src/snap.h +++ b/src/snap.h @@ -112,9 +112,9 @@ public: */ void setup(SPDesktop const *desktop, bool snapindicator = true, - SPItem const *item_to_ignore = NULL, - std::vector<Inkscape::SnapCandidatePoint> *unselected_nodes = NULL, - SPGuide *guide_to_ignore = NULL); + SPItem const *item_to_ignore = nullptr, + std::vector<Inkscape::SnapCandidatePoint> *unselected_nodes = nullptr, + SPGuide *guide_to_ignore = nullptr); /** * Prepare the snap manager for the actual snapping, which includes building a list of snap targets @@ -134,18 +134,18 @@ public: void setup(SPDesktop const *desktop, bool snapindicator, std::vector<SPItem const *> &items_to_ignore, - std::vector<Inkscape::SnapCandidatePoint> *unselected_nodes = NULL, - SPGuide *guide_to_ignore = NULL); + std::vector<Inkscape::SnapCandidatePoint> *unselected_nodes = nullptr, + SPGuide *guide_to_ignore = nullptr); void setupIgnoreSelection(SPDesktop const *desktop, bool snapindicator = true, - std::vector<Inkscape::SnapCandidatePoint> *unselected_nodes = NULL, - SPGuide *guide_to_ignore = NULL); + std::vector<Inkscape::SnapCandidatePoint> *unselected_nodes = nullptr, + SPGuide *guide_to_ignore = nullptr); void unSetup() {_rotation_center_source_items.clear(); - _guide_to_ignore = NULL; - _desktop = NULL; - _unselected_nodes = NULL;} + _guide_to_ignore = nullptr; + _desktop = nullptr; + _unselected_nodes = nullptr;} // If we're dragging a rotation center, then setRotationCenterSource() stores the parent item // of this rotation center; this reference is used to make sure that we do not snap a rotation |
