Mkclass: Only render setter if not declared pure virtual

This commit is contained in:
Michael Friedrich 2018-08-10 10:39:17 +02:00
parent b350512b11
commit caefa58cf6
1 changed files with 2 additions and 1 deletions

View File

@ -568,7 +568,8 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
<< "{" << std::endl; << "{" << std::endl;
for (const Field& field : klass.Fields) { for (const Field& field : klass.Fields) {
m_Impl << "\t" << "Set" << field.GetFriendlyName() << "(" << "GetDefault" << field.GetFriendlyName() << "(), true);" << std::endl; if (!field.PureSetAccessor)
m_Impl << "\t" << "Set" << field.GetFriendlyName() << "(" << "GetDefault" << field.GetFriendlyName() << "(), true);" << std::endl;
} }
m_Impl << "}" << std::endl << std::endl; m_Impl << "}" << std::endl << std::endl;