diff options
author | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
commit | 3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch) | |
tree | e35b1b0bdf6715ed784d0c86482355528bee81ee /cpp/src/Slice/PHPUtil.cpp | |
parent | Visual Studio and msbuild updates (diff) | |
download | ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2 ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip |
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'cpp/src/Slice/PHPUtil.cpp')
-rw-r--r-- | cpp/src/Slice/PHPUtil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/Slice/PHPUtil.cpp b/cpp/src/Slice/PHPUtil.cpp index c47e9b00330..a2854f5a6e8 100644 --- a/cpp/src/Slice/PHPUtil.cpp +++ b/cpp/src/Slice/PHPUtil.cpp @@ -19,7 +19,12 @@ static string lowerCase(const string& s) { string result(s); +#ifdef ICE_CPP11_COMPILER + transform(result.begin(), result.end(), result.begin(), + [](char c){ return static_cast<char>(::tolower(static_cast<unsigned char>(c))); }); +#else transform(result.begin(), result.end(), result.begin(), ::tolower); +#endif return result; } |