Fix Visual Studio 2017 new warning (C4244: 'argument': conversion fro… (#4261)

* Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data)

* Fix Visual Studio 2017 pedantic warnings

* Fix Visual Studio 2017 pedantic warnings
This commit is contained in:
chronoxor
2017-04-12 23:13:10 +03:00
committed by Wouter van Oortmerssen
parent 28e7dbd3d3
commit e6fa7b1133
3 changed files with 8 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class CppGenerator : public BaseGenerator {
guard += *it + "_";
}
guard += "H_";
std::transform(guard.begin(), guard.end(), guard.begin(), ::toupper);
std::transform(guard.begin(), guard.end(), guard.begin(), ToUpper);
return guard;
}
@@ -852,7 +852,7 @@ class CppGenerator : public BaseGenerator {
std::string GenFieldOffsetName(const FieldDef &field) {
std::string uname = field.name;
std::transform(uname.begin(), uname.end(), uname.begin(), ::toupper);
std::transform(uname.begin(), uname.end(), uname.begin(), ToUpper);
return "VT_" + uname;
}