mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Color: Removed unnecessary copy
This commit is contained in:
parent
16b8f90048
commit
c1e86f59e2
1 changed files with 1 additions and 3 deletions
|
@ -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 <std::string> 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue