diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-26 21:47:45 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-26 21:47:45 +0000 |
commit | 327916d049a31ff473cda848793b22350a7920d6 (patch) | |
tree | 40519f4f57a8f69d59792d043e51df6e840fc082 /cpp/src/slice2java/Gen.cpp | |
parent | file ServerLocatorRegistry.java was initially added on branch location. (diff) | |
download | ice-327916d049a31ff473cda848793b22350a7920d6.tar.bz2 ice-327916d049a31ff473cda848793b22350a7920d6.tar.xz ice-327916d049a31ff473cda848793b22350a7920d6.zip |
const correctness
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 25687404f8d..0fafd5ddb71 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -112,7 +112,7 @@ Slice::JavaVisitor::writeThrowsClause(const string& scope, // // MSVC gets confused if - // ::IceUtil::memFun(&::Slice::Exception::isLocal)); is used hence + // ::IceUtil::constMemFun(&::Slice::Exception::isLocal)); is used hence // the exceptionIsLocal function. // localCount = count_if(throws.begin(), throws.end(), exceptionIsLocal); @@ -291,7 +291,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) ClassList allBases = p->allBases(); StringList ids; - transform(allBases.begin(), allBases.end(), back_inserter(ids), ::IceUtil::memFun(&ClassDef::scoped)); + transform(allBases.begin(), allBases.end(), back_inserter(ids), ::IceUtil::constMemFun(&ClassDef::scoped)); StringList other; other.push_back(scoped); other.push_back("::Ice::Object"); @@ -386,7 +386,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) // // MSVC gets confused if - // ::IceUtil::memFun(&::Slice::Exception::isLocal)); is used + // ::IceUtil::constMemFun(&::Slice::Exception::isLocal)); is used // hence the exceptionIsLocal function. // remove_if(throws.begin(), throws.end(), exceptionIsLocal); @@ -491,7 +491,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) { StringList allOpNames; transform(allOps.begin(), allOps.end(), back_inserter(allOpNames), - ::IceUtil::memFun(&Operation::name)); + ::IceUtil::constMemFun(&Operation::name)); allOpNames.push_back("ice_facets"); allOpNames.push_back("ice_id"); allOpNames.push_back("ice_ids"); @@ -1291,7 +1291,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) StringList exceptionIds; transform(allBases.begin(), allBases.end(), back_inserter(exceptionIds), - ::IceUtil::memFun(&Exception::scoped)); + ::IceUtil::constMemFun(&Exception::scoped)); exceptionIds.push_front(scoped); exceptionIds.push_back("::Ice::UserException"); @@ -2924,7 +2924,7 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p) // // MSVC gets confused if - // ::IceUtil::memFun(&::Slice::Exception::isLocal)); is used + // ::IceUtil::constMemFun(&::Slice::Exception::isLocal)); is used // hence the exceptionIsLocal function. // throws.erase(remove_if(throws.begin(), throws.end(), exceptionIsLocal), throws.end()); @@ -3093,7 +3093,7 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p) // // MSVC gets confused if - // ::IceUtil::memFun(&::Slice::Exception::isLocal)); is used + // ::IceUtil::constMemFun(&::Slice::Exception::isLocal)); is used // hence the exceptionIsLocal function. // throws.erase(remove_if(throws.begin(), throws.end(), exceptionIsLocal), throws.end()); |