diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-04-28 13:34:45 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-04-28 13:34:45 -0230 |
commit | bfcff3c0a3fa0f975d326959796f1a165da01057 (patch) | |
tree | 3db3515e4524c13dcb9f7317539d692b2926f283 /cpp/src/slice2cpp/Gen.cpp | |
parent | Added mcpp 2.7 patch (diff) | |
download | ice-bfcff3c0a3fa0f975d326959796f1a165da01057.tar.bz2 ice-bfcff3c0a3fa0f975d326959796f1a165da01057.tar.xz ice-bfcff3c0a3fa0f975d326959796f1a165da01057.zip |
Bug 3035 - "cpp:const" not handled properly generating impl
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2cpp/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index ee86df20395..77e6d834465 100755 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -4986,7 +4986,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) H << ',' << nl << "const Ice::Current&"; H.restoreIndent(); - bool isConst = (op->mode() == Operation::Nonmutating) || p->hasMetaData("cpp:const"); + bool isConst = (op->mode() == Operation::Nonmutating) || op->hasMetaData("cpp:const"); H << ")" << (isConst ? " const" : "") << ';'; @@ -5089,7 +5089,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) } H.restoreIndent(); - bool isConst = (op->mode() == Operation::Nonmutating) || p->hasMetaData("cpp:const"); + bool isConst = (op->mode() == Operation::Nonmutating) || op->hasMetaData("cpp:const"); H << ")" << (isConst ? " const" : "") << ';'; |