display deprecated value in enumeration warning [skip ci]
This commit is contained in:
parent
e44cdef805
commit
d57f1cbb71
1 changed files with 1 additions and 1 deletions
|
@ -183,8 +183,8 @@ public:
|
|||
std::string str_copy(str);
|
||||
if (str_copy.find('_') != std::string::npos)
|
||||
{
|
||||
MAPNIK_LOG_ERROR(enumerations) << "enumeration values using \"_\" are deprecated and will be removed in Mapnik 4.x, use \"-\"instead";
|
||||
std::replace(str_copy.begin(), str_copy.end(), '_', '-');
|
||||
MAPNIK_LOG_ERROR(enumerations) << "enumeration value (" << str << ") using \"_\" is deprecated and will be removed in Mapnik 4.x, use '" << str_copy << "' instead";
|
||||
}
|
||||
for (unsigned i = 0; i < THE_MAX; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue