summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-06-26 21:47:45 +0000
committerMarc Laukien <marc@zeroc.com>2002-06-26 21:47:45 +0000
commit327916d049a31ff473cda848793b22350a7920d6 (patch)
tree40519f4f57a8f69d59792d043e51df6e840fc082 /cpp/src/slice2cpp/Gen.cpp
parentfile ServerLocatorRegistry.java was initially added on branch location. (diff)
downloadice-327916d049a31ff473cda848793b22350a7920d6.tar.bz2
ice-327916d049a31ff473cda848793b22350a7920d6.tar.xz
ice-327916d049a31ff473cda848793b22350a7920d6.zip
const correctness
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 4b3a7cea037..c78b5252965 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -376,7 +376,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
ExceptionList allBases = p->allBases();
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");
@@ -1874,7 +1874,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(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");
@@ -1970,7 +1970,8 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
if(!allOps.empty())
{
StringList allOpNames;
- transform(allOps.begin(), allOps.end(), back_inserter(allOpNames), ::IceUtil::memFun(&Operation::name));
+ transform(allOps.begin(), allOps.end(), back_inserter(allOpNames),
+ ::IceUtil::constMemFun(&Operation::name));
allOpNames.push_back("ice_facets");
allOpNames.push_back("ice_id");
allOpNames.push_back("ice_ids");