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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index c0ae7f2fa25..dca641def2d 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -5771,7 +5771,7 @@ Slice::Gen::Cpp11ObjectDeclVisitor::visitClassDecl(const ClassDeclPtr& p)
H << sp << nl << "class " << name << ';';
H << nl << "typedef ::std::shared_ptr< " << name << "> " << p->name() << "Ptr;";
}
- if(p->isInterface())
+ else if(p->isInterface())
{
H << sp << nl << "class " << name << ';';
H << nl << "typedef ::std::shared_ptr< " << name << "> " << p->name() << "Ptr;";