Color: Remove support for underscores in color values
Values like 'on_red' will no longer work. This feature has been deprecated since 2009.
This commit is contained in:
committed by
Paul Beckingham
parent
8536dc9658
commit
99b650a3ba
@@ -100,11 +100,7 @@ Color::Color (const std::string& spec)
|
|||||||
: _value (0)
|
: _value (0)
|
||||||
{
|
{
|
||||||
#ifdef FEATURE_COLOR
|
#ifdef FEATURE_COLOR
|
||||||
// By converting underscores to spaces, we inherently support the old "on_red"
|
|
||||||
// style of specifying background colors. We consider underscores to be
|
|
||||||
// deprecated.
|
|
||||||
std::string modifiable_spec = spec;
|
std::string modifiable_spec = spec;
|
||||||
std::replace (modifiable_spec.begin (), modifiable_spec.end (), '_', ' ');
|
|
||||||
|
|
||||||
// Split spec into words.
|
// Split spec into words.
|
||||||
std::vector <std::string> words;
|
std::vector <std::string> words;
|
||||||
|
|||||||
Reference in New Issue
Block a user