From 050f4fce603f17b11df031e05d9060012a1afca2 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Fri, 6 Feb 2009 10:45:02 -0330 Subject: Bug 3519 - fix use of tolower in slice2freeze --- cpp/src/slice2freeze/Main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpp/src/slice2freeze/Main.cpp') 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& includePaths, co } CPP << "\n#include "; + CPP << "\n#include "; CPP << "\n#include <"; if(include.size()) { -- cgit v1.2.3