diff options
author | Michi Henning <michi@zeroc.com> | 2006-02-02 05:39:39 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-02-02 05:39:39 +0000 |
commit | e0bd146e56c1592737ffd4b911415742059e381c (patch) | |
tree | 6e4e25713694a528de179cc675b8c313dc32c202 /cpp/src/slice2cpp/Gen.cpp | |
parent | Fixed bug in generated code for one-shot constructors. (diff) | |
download | ice-e0bd146e56c1592737ffd4b911415742059e381c.tar.bz2 ice-e0bd146e56c1592737ffd4b911415742059e381c.tar.xz ice-e0bd146e56c1592737ffd4b911415742059e381c.zip |
Removed redundant semicolong in generated header for exception class
inlined default constructors.
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 5d82de465e1..21851b71304 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -464,7 +464,10 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) { H << " {}"; } - H << ';'; + else + { + H << ';'; + } if(!allTypes.empty()) { H << nl; @@ -2336,7 +2339,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) if(!p->isInterface()) { - H << nl << name << "() {};"; + H << nl << name << "() {}"; if(!allParamDecls.empty()) { H << nl; |