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