diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-02-06 10:45:02 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-02-06 10:45:02 -0330 |
commit | 050f4fce603f17b11df031e05d9060012a1afca2 (patch) | |
tree | dde67b3426feae7f06ea2fde4c343465b5af2cdb /cpp/src | |
parent | updating CHANGES for bug 3373 (diff) | |
download | ice-050f4fce603f17b11df031e05d9060012a1afca2.tar.bz2 ice-050f4fce603f17b11df031e05d9060012a1afca2.tar.xz ice-050f4fce603f17b11df031e05d9060012a1afca2.zip |
Bug 3519 - fix use of tolower in slice2freeze
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index c466a7edd62..3243dd7ee1f 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -702,8 +702,7 @@ writeDictWithIndicesC(const string& name, const string& absolute, const Dict& di else { C << nl << typeToString(indexTypes[i].type, false, indexTypes[i].metaData) - << " __lowerCaseIndex = __index;"; - C << nl << "std::transform(__lowerCaseIndex.begin(), __lowerCaseIndex.end(), __lowerCaseIndex.begin(), tolower);"; + << " __lowerCaseIndex = IceUtilInternal::toLower(__index);"; valueS = "__lowerCaseIndex"; } @@ -1235,8 +1234,7 @@ writeIndexC(const TypePtr& type, const TypePtr& memberType, const string& member } else { - C << nl << typeToString(memberType, false) << " __lowerCaseIndex = __index;"; - C << nl << "std::transform(__lowerCaseIndex.begin(), __lowerCaseIndex.end(), __lowerCaseIndex.begin(), tolower);"; + C << nl << typeToString(memberType, false) << " __lowerCaseIndex = IceUtilInternal::toLower(__index);"; valueS = "__lowerCaseIndex"; } @@ -1443,6 +1441,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co } CPP << "\n#include <Ice/BasicStream.h>"; + CPP << "\n#include <IceUtil/StringUtil.h>"; CPP << "\n#include <"; if(include.size()) { |