From 06b5f06494afb3b8e7000f2804bd3d18dbdd0dd9 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 12 Aug 2016 07:58:24 +0200 Subject: [PATCH] Change wording for the function validation message refs #12393 --- tools/mkclass/classcompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index 8277826be..1b95e672d 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -525,7 +525,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) m_Impl << "\t" << "if (avalue.IsObjectType()) {" << std::endl << "\t\t" << "Function::Ptr func = avalue;" << std::endl << "\t\t" << "if (func->IsDeprecated())" << std::endl - << "\t\t\t" << "Log(LogWarning, \"" << klass.Name << "\") << \"Field '" << field.Name << "' for object '\" << dynamic_cast(this)->GetName() << \"' of type '\" << dynamic_cast(this)->GetType()->GetName() << \"' is set to a deprecated function: \" << func->GetName();" << std::endl + << "\t\t\t" << "Log(LogWarning, \"" << klass.Name << "\") << \"Attribute '" << field.Name << "' for object '\" << dynamic_cast(this)->GetName() << \"' of type '\" << dynamic_cast(this)->GetType()->GetName() << \"' is set to a deprecated function: \" << func->GetName();" << std::endl << "\t" << "}" << std::endl << std::endl; std::string ftype = FieldTypeToIcingaName(field, true);