summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2swift/Gen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 9c4b0e8fdfd..1f2bb465f35 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -479,9 +479,8 @@ Gen::TypesVisitor::visitStructStart(const StructPtr& p)
bool legalKeyType = Dictionary::legalKeyType(p, containsSequence);
const DataMemberList members = p->dataMembers();
- bool isClass = p->hasMetaData("swift:class") || containsClassMembers(p);
out << sp;
- out << nl << "public " << (isClass ? "class " : "struct ") << name;
+ out << nl << "public " << (containsClassMembers(p) ? "class " : "struct ") << name;
if(legalKeyType)
{
out << ": Swift.Hashable";