display deprecated value in enumeration warning [skip ci]

This commit is contained in:
Dane Springmeyer 2015-05-11 17:49:35 -07:00
parent e44cdef805
commit d57f1cbb71

View file

@ -183,8 +183,8 @@ public:
std::string str_copy(str); std::string str_copy(str);
if (str_copy.find('_') != std::string::npos) 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(), '_', '-'); 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) for (unsigned i = 0; i < THE_MAX; ++i)
{ {