diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-18 00:43:28 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-18 00:43:28 +0000 |
commit | 14093340f6e223cc678b8b7a869240c6f13eda25 (patch) | |
tree | c6232ff538b144459b255af5cdaf799c7473f696 /cpp/src/slice2cpp | |
parent | fixes (diff) | |
download | ice-14093340f6e223cc678b8b7a869240c6f13eda25.tar.bz2 ice-14093340f6e223cc678b8b7a869240c6f13eda25.tar.xz ice-14093340f6e223cc678b8b7a869240c6f13eda25.zip |
exception fixes
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 1ad8d17faea..e52791c97e2 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -224,6 +224,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) H << nl << "public: "; H.inc(); + H << sp; if (p->isLocal()) { H << nl << _dllExport << name << "(const char*, int);"; @@ -248,11 +249,10 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) C << nl << "return \"" << scoped.substr(2) << "\";"; C << eb; - H << nl << _dllExport << "virtual ::std::ostream& _print(::std::ostream&) const;"; - C << sp << nl << "::std::ostream&" << nl << scoped.substr(2) << "::_print(::std::ostream& out) const"; - C << sb; - C << nl << "return IceUtil::printException(out, *this);"; - C << eb; + if (p->isLocal()) + { + H << nl << _dllExport << "virtual void _print(::std::ostream&) const;"; + } H << nl << _dllExport << "virtual ::Ice::Exception* _clone() const;"; C << sp << nl << "::Ice::Exception*" << nl << scoped.substr(2) << "::_clone() const"; @@ -2087,7 +2087,7 @@ Slice::Gen::HandleVisitor::visitClassDefStart(const ClassDefPtr& p) C << nl << "else"; C << sb; C << nl << "v = new ::IceProxy" << scoped << ';'; - C << nl << "v->__copyFrom(proxy.get());"; + C << nl << "v->__copyFrom(proxy);"; C << eb; C << eb; |