diff options
author | Michi Henning <michi@zeroc.com> | 2004-09-13 23:52:36 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-09-13 23:52:36 +0000 |
commit | 0d08a8ac1618aafe7c22ddad17fe938df9f6781c (patch) | |
tree | 12b94b89a6291143993f44dcc17e7bceeed0724a /cpp | |
parent | Connection.ice (diff) | |
download | ice-0d08a8ac1618aafe7c22ddad17fe938df9f6781c.tar.bz2 ice-0d08a8ac1618aafe7c22ddad17fe938df9f6781c.tar.xz ice-0d08a8ac1618aafe7c22ddad17fe938df9f6781c.zip |
Changed --impl fix for syntax error to omit leading global scope qualifier
on the operation definition (instead of surrounding the operation
definition with parenthesis).
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 676012a221c..034f34136f1 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -3351,11 +3351,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) H << ")" << (nonmutating ? " const" : "") << ';'; C << sp << nl << retS << nl; - if(retS[0] == ':') - { - C << '('; - } - C << scope << name << "I::" << fixKwd(opName) << '('; + C << scope.substr(2) << name << "I::" << fixKwd(opName) << '('; C.useCurrentPosAsIndent(); for(q = paramList.begin(); q != paramList.end(); ++q) { @@ -3392,10 +3388,6 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) } C.restoreIndent(); C << ')'; - if(retS[0] == ':') - { - C << ')'; - } C << (nonmutating ? " const" : ""); C << sb; |