summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-10-24 12:53:11 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-10-24 12:53:11 +0000
commit1ef92819aa657e92b6bbafe4c6e3f2020b14c053 (patch)
tree5336a3c7750abe764f3c933f77bb08a31cfac3cb /cpp/src/slice2cpp/Gen.cpp
parentDefine the signals and signalSet static attributes (diff)
downloadice-1ef92819aa657e92b6bbafe4c6e3f2020b14c053.tar.bz2
ice-1ef92819aa657e92b6bbafe4c6e3f2020b14c053.tar.xz
ice-1ef92819aa657e92b6bbafe4c6e3f2020b14c053.zip
Back out change that prevented proxy to be generated for class without
operations, this doesn't work because of forward declarations
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index e73cb72c486..428d5bd69f7 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -2431,7 +2431,7 @@ Slice::Gen::IceInternalVisitor::visitClassDefStart(const ClassDefPtr& p)
C << nl << "p->__decRef();";
C << eb;
- if(!p->isLocal() && (p->isInterface() || p->allOperations().size() != 0))
+ if(!p->isLocal())
{
C << sp;
C << nl << "void" << nl << "IceInternal::incRef(::IceProxy" << scoped << "* p)";
@@ -2554,27 +2554,24 @@ Slice::Gen::HandleVisitor::visitClassDecl(const ClassDeclPtr& p)
H << nl << "typedef ::IceInternal::Handle< " << scoped << "> " << name << "Ptr;";
if(!p->isLocal())
{
- if(p->isInterface() || (p->definition() && p->definition()->allOperations().size() != 0))
- {
- H << nl << "typedef ::IceInternal::ProxyHandle< ::IceProxy" << scoped << "> " << name << "Prx;";
+ H << nl << "typedef ::IceInternal::ProxyHandle< ::IceProxy" << scoped << "> " << name << "Prx;";
- H << sp;
- H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "Prx&);";
- H << nl << _dllExport << "void __read(::IceInternal::BasicStream*, " << name << "Prx&);";
+ H << sp;
+ H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "Prx&);";
+ H << nl << _dllExport << "void __read(::IceInternal::BasicStream*, " << name << "Prx&);";
- H << sp;
- H << nl << _dllExport << "void ice_marshal(const ::std::string&, const ::Ice::StreamPtr&, const "
- << name << "Prx&);";
- H << nl << _dllExport << "void ice_unmarshal(const ::std::string&, const ::Ice::StreamPtr&, "
- << name << "Prx&);";
- }
+ H << sp;
+ H << nl << _dllExport << "void ice_marshal(const ::std::string&, const ::Ice::StreamPtr&, const "
+ << name << "Prx&);";
+ H << nl << _dllExport << "void ice_unmarshal(const ::std::string&, const ::Ice::StreamPtr&, "
+ << name << "Prx&);";
}
}
bool
Slice::Gen::HandleVisitor::visitClassDefStart(const ClassDefPtr& p)
{
- if(!p->isLocal() && (p->isInterface() || p->allOperations().size()) != 0)
+ if(!p->isLocal())
{
string scoped = fixKwd(p->scoped());
string scope = fixKwd(p->scope());