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/color.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/color.cpp')
| -rw-r--r-- | src/color.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/color.cpp b/src/color.cpp index 6baf6470c..c3353ef1c 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -15,6 +15,7 @@ #include <cmath> #include <cstdio> +#include <vector> #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) #define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) @@ -29,7 +30,6 @@ #define return_val_if_fail(x, val) if (!(x)) { printf("assertion failed: " #x); return val; } using Inkscape::CSSOStringStream; -using std::vector; static bool profileMatches( SVGICCColor const* first, SVGICCColor const* second ); @@ -205,7 +205,7 @@ std::string SPColor::toString() const css << " "; } css << "icc-color(" << icc->colorProfile; - for (vector<double>::const_iterator i(icc->colors.begin()), + for (std::vector<double>::const_iterator i(icc->colors.begin()), iEnd(icc->colors.end()); i != iEnd; ++i) { css << ", " << *i; |
