diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-01-23 01:58:28 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2019-03-06 01:26:24 +0000 |
| commit | e71e984af918104579da59e45785fe1651c5e992 (patch) | |
| tree | 9fe91c6e2b1237055e46dc4974c1003c2abc8d61 /src/object/sp-guide.cpp | |
| parent | Revert modal fix to fix #108 (diff) | |
| download | inkscape-e71e984af918104579da59e45785fe1651c5e992.tar.gz inkscape-e71e984af918104579da59e45785fe1651c5e992.zip | |
Avoid the “using std::*;” or “using namespace std;” constructs.
This makes the code a lot less readable and greppable for no reason.
Diffstat (limited to 'src/object/sp-guide.cpp')
| -rw-r--r-- | src/object/sp-guide.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object/sp-guide.cpp b/src/object/sp-guide.cpp index bbb66aa4a..8dbc68f09 100644 --- a/src/object/sp-guide.cpp +++ b/src/object/sp-guide.cpp @@ -19,6 +19,7 @@ #include <algorithm> #include <cstring> #include <string> +#include <vector> #include "display/sp-canvas.h" #include "display/guideline.h" @@ -40,7 +41,6 @@ #include "verbs.h" using Inkscape::DocumentUndo; -using std::vector; SPGuide::SPGuide() : SPObject() @@ -406,7 +406,7 @@ void SPGuide::moveto(Geom::Point const point_on_line, bool const commit) } /* DISABLED CODE BECAUSE SPGuideAttachment IS NOT USE AT THE MOMENT (johan) - for (vector<SPGuideAttachment>::const_iterator i(attached_items.begin()), + for (std::vector<SPGuideAttachment>::const_iterator i(attached_items.begin()), iEnd(attached_items.end()); i != iEnd; ++i) { @@ -445,7 +445,7 @@ void SPGuide::set_normal(Geom::Point const normal_to_line, bool const commit) } /* DISABLED CODE BECAUSE SPGuideAttachment IS NOT USE AT THE MOMENT (johan) - for (vector<SPGuideAttachment>::const_iterator i(attached_items.begin()), + for (std::vector<SPGuideAttachment>::const_iterator i(attached_items.begin()), iEnd(attached_items.end()); i != iEnd; ++i) { @@ -550,7 +550,7 @@ void sp_guide_remove(SPGuide *guide) { g_assert(SP_IS_GUIDE(guide)); - for (vector<SPGuideAttachment>::const_iterator i(guide->attached_items.begin()), + for (std::vector<SPGuideAttachment>::const_iterator i(guide->attached_items.begin()), iEnd(guide->attached_items.end()); i != iEnd; ++i) { |
