summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-05-11 16:30:12 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-05-11 16:30:12 -0230
commit95ceac932537938ed9645f5bad984aff0d9256ee (patch)
tree53767a0a6700215501890b90f8c6fe89a74bd124 /cpp/src/slice2cpp/Gen.cpp
parentBug 1294 - declare generated C# classes as partial (diff)
downloadice-95ceac932537938ed9645f5bad984aff0d9256ee.tar.bz2
ice-95ceac932537938ed9645f5bad984aff0d9256ee.tar.xz
ice-95ceac932537938ed9645f5bad984aff0d9256ee.zip
Remove unnecessary scoping
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index fd4c606ff19..5d3ebdfb481 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -963,7 +963,7 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p)
dllExport = _dllExport;
}
- H << sp << nl << "bool" << nl << scoped.substr(2) << "::operator==(const " << name << "& __rhs) const";
+ H << sp << nl << "bool operator==(const " << name << "& __rhs) const";
H << sb;
H << nl << "if(this == &__rhs)";
H << sb;
@@ -978,7 +978,7 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p)
}
H << nl << "return true;";
H << eb;
- H << sp << nl << "bool" << nl << scoped.substr(2) << "::operator<(const " << name << "& __rhs) const";
+ H << sp << nl << "bool operator<(const " << name << "& __rhs) const";
H << sb;
H << nl << "if(this == &__rhs)";
H << sb;