diff options
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 86d37fd5756..e73cb72c486 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1905,8 +1905,14 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) if(!p->isAbstract()) { + H.dec(); + H << sp << nl << "private:"; + H.inc(); H << sp << nl << exp2 << "static ::Ice::ObjectFactoryPtr _factory;"; - H << nl << exp2 << "static const ::Ice::ObjectFactoryPtr& ice_factory();"; + H.dec(); + H << sp << nl << "public:"; + H.inc(); + H << sp << nl << exp2 << "static const ::Ice::ObjectFactoryPtr& ice_factory();"; } C << sp; C << nl << "const ::std::string " << scoped.substr(2) << "::__ids[" << ids.size() << "] ="; |