Revert "Fix string conversions in PlaceholderParser"

This reverts commit 570cc6e167.
Not an improvement
This commit is contained in:
Vojtech Kral 2019-01-17 19:00:08 +01:00
parent 606789130e
commit 3a48f36268

View File

@ -270,9 +270,9 @@ namespace client
{
std::string out;
switch (type) {
case TYPE_BOOL: out = boost::lexical_cast<std::string>(data.b); break;
case TYPE_INT: out = boost::lexical_cast<std::string>(data.i); break;
case TYPE_DOUBLE: out = boost::lexical_cast<std::string>(data.d); break;
case TYPE_BOOL: out = std::to_string(data.b); break;
case TYPE_INT: out = std::to_string(data.i); break;
case TYPE_DOUBLE: out = std::to_string(data.d); break;
case TYPE_STRING: out = *data.s; break;
default: break;
}