diff options
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | 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 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; |