From c1e86f59e25e9e1c8897f3edb8c62d1ebd404455 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 6 Sep 2015 12:24:49 -0400 Subject: [PATCH] Color: Removed unnecessary copy --- src/Color.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Color.cpp b/src/Color.cpp index d0fb91700..4f5fecc5a 100644 --- a/src/Color.cpp +++ b/src/Color.cpp @@ -100,11 +100,9 @@ Color::Color (const std::string& spec) : _value (0) { #ifdef FEATURE_COLOR - std::string modifiable_spec = spec; - // Split spec into words. std::vector words; - split (words, modifiable_spec, ' '); + split (words, spec, ' '); // Construct the color as two separate colors, then blend them later. This // make it possible to declare a color such as "color1 on black", and have