diff options
author | Michi Henning <michi@zeroc.com> | 2009-02-11 16:02:22 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2009-02-11 16:02:22 +1000 |
commit | 69b75f3ccde03365be46980e1871607ae7dfc494 (patch) | |
tree | ebd8e9cb46453b2c07100a120d7f6dcbfa7c29a3 /cpp/src/slice2freeze/Main.cpp | |
parent | Bug 3717: Bizarre magic numbery code in cs/demo/Ice/latency. (diff) | |
parent | bug 3021 - replace StringBuffer with StringBuilder (diff) | |
download | ice-69b75f3ccde03365be46980e1871607ae7dfc494.tar.bz2 ice-69b75f3ccde03365be46980e1871607ae7dfc494.tar.xz ice-69b75f3ccde03365be46980e1871607ae7dfc494.zip |
Merge branch 'R3_3_branch' of ssh://cvs.zeroc.com/home/git/ice into R3_3_branch
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-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()) { |