diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index ae2abbad0..798ca25dc 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -640,18 +640,13 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) void ClassCompiler::CodeGenValidator(const std::string& name, const std::string& klass, const std::vector& rules, const std::string& field, const FieldType& fieldType, ValidatorType validatorType) { - m_Header << "void TIValidate" << name << "(const intrusive_ptr >& object, "; - m_Impl << "void TIValidate" << name << "(const intrusive_ptr >& object, "; + m_Impl << "static void TIValidate" << name << "(const intrusive_ptr >& object, "; - if (validatorType != ValidatorField) { - m_Header << "const String& key, "; + if (validatorType != ValidatorField) m_Impl << "const String& key, "; - } bool static_known_attribute = false; - m_Header << fieldType.GetArgumentType() << " value, std::vector& location, const ValidationUtils& utils);" << std::endl; - m_Impl << fieldType.GetArgumentType() << " value, std::vector& location, const ValidationUtils& utils)" << std::endl << "{" << std::endl;