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/color.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/color.cpp') 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 #include +#include #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::const_iterator i(icc->colors.begin()), + for (std::vector::const_iterator i(icc->colors.begin()), iEnd(icc->colors.end()); i != iEnd; ++i) { css << ", " << *i; -- cgit v1.2.3