summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index eefc51457c5..8b1ebf320ee 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -5208,7 +5208,7 @@ Slice::Gen::Cpp11DeclVisitor::visitClassDecl(const ClassDeclPtr& p)
}
H << nl << "class " << fixKwd(p->name()) << ';';
- if(p->isInterface() || (def && !def->allOperations().empty()))
+ if(!p->isLocal() && (p->isInterface() || (def && !def->allOperations().empty())))
{
H << nl << "class " << p->name() << "Prx;";
}
@@ -6434,12 +6434,13 @@ Slice::Gen::Cpp11LocalObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
bool virtualInheritance = p->isInterface();
while(q != bases.end())
{
+ H << "public ";
if(virtualInheritance || (*q)->isInterface())
{
H << "virtual ";
}
- H << "public " << fixKwd((*q)->scoped());
+ H << fixKwd((*q)->scoped());
if(++q != bases.end())
{
H << ',' << nl;