summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-09-13 23:52:36 +0000
committerMichi Henning <michi@zeroc.com>2004-09-13 23:52:36 +0000
commit0d08a8ac1618aafe7c22ddad17fe938df9f6781c (patch)
tree12b94b89a6291143993f44dcc17e7bceeed0724a /cpp/src
parentConnection.ice (diff)
downloadice-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/src')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp10
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;