From e71e984af918104579da59e45785fe1651c5e992 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 23 Jan 2019 02:58:28 +0100 Subject: =?UTF-8?q?Avoid=20the=20=E2=80=9Cusing=20std::*;=E2=80=9D=20or=20?= =?UTF-8?q?=E2=80=9Cusing=20namespace=20std;=E2=80=9D=20constructs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the code a lot less readable and greppable for no reason. --- src/live_effects/lpe-bendpath.cpp | 4 +--- src/live_effects/lpe-envelope.cpp | 2 -- src/live_effects/lpe-gears.cpp | 1 - src/live_effects/lpe-patternalongpath.cpp | 3 +-- src/live_effects/lpe-test-doEffect-stack.cpp | 2 -- src/live_effects/lpe-vonkoch.cpp | 2 +- 6 files changed, 3 insertions(+), 11 deletions(-) (limited to 'src/live_effects') diff --git a/src/live_effects/lpe-bendpath.cpp b/src/live_effects/lpe-bendpath.cpp index 6f4dcf6c3..5214f0e2c 100644 --- a/src/live_effects/lpe-bendpath.cpp +++ b/src/live_effects/lpe-bendpath.cpp @@ -6,6 +6,7 @@ * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ +#include #include "live_effects/lpe-bendpath.h" #include "knot-holder-entity.h" #include "knotholder.h" @@ -13,9 +14,6 @@ // TODO due to internal breakage in glibmm headers, this must be last: #include -using std::vector; - - /* Theory in e-mail from J.F. Barraud Let B be the skeleton path, and P the pattern (the path to be deformed). diff --git a/src/live_effects/lpe-envelope.cpp b/src/live_effects/lpe-envelope.cpp index 968714cf7..325bf3935 100644 --- a/src/live_effects/lpe-envelope.cpp +++ b/src/live_effects/lpe-envelope.cpp @@ -10,8 +10,6 @@ // TODO due to internal breakage in glibmm headers, this must be last: #include -using std::vector; - namespace Inkscape { namespace LivePathEffect { diff --git a/src/live_effects/lpe-gears.cpp b/src/live_effects/lpe-gears.cpp index f1e287704..a7bbfd567 100644 --- a/src/live_effects/lpe-gears.cpp +++ b/src/live_effects/lpe-gears.cpp @@ -12,7 +12,6 @@ // TODO due to internal breakage in glibmm headers, this must be last: #include -using std::vector; using namespace Geom; class Gear { diff --git a/src/live_effects/lpe-patternalongpath.cpp b/src/live_effects/lpe-patternalongpath.cpp index 081c87990..c667bdc49 100644 --- a/src/live_effects/lpe-patternalongpath.cpp +++ b/src/live_effects/lpe-patternalongpath.cpp @@ -7,6 +7,7 @@ #include #include +#include #include <2geom/bezier-to-sbasis.h> @@ -20,8 +21,6 @@ // TODO due to internal breakage in glibmm headers, this must be last: #include -using std::vector; - /* Theory in e-mail from J.F. Barraud Let B be the skeleton path, and P the pattern (the path to be deformed). diff --git a/src/live_effects/lpe-test-doEffect-stack.cpp b/src/live_effects/lpe-test-doEffect-stack.cpp index ffe507e34..55d707af2 100644 --- a/src/live_effects/lpe-test-doEffect-stack.cpp +++ b/src/live_effects/lpe-test-doEffect-stack.cpp @@ -10,8 +10,6 @@ // TODO due to internal breakage in glibmm headers, this must be last: #include -using std::memcpy; - namespace Inkscape { namespace LivePathEffect { diff --git a/src/live_effects/lpe-vonkoch.cpp b/src/live_effects/lpe-vonkoch.cpp index aa0f46ecc..8936bd83a 100644 --- a/src/live_effects/lpe-vonkoch.cpp +++ b/src/live_effects/lpe-vonkoch.cpp @@ -5,11 +5,11 @@ * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ +#include #include "live_effects/lpe-vonkoch.h" // TODO due to internal breakage in glibmm headers, this must be last: #include -//using std::vector; namespace Inkscape { namespace LivePathEffect { -- cgit v1.2.3