mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
parent
187ee0db80
commit
2bf5f4d497
@ -935,11 +935,11 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
||||
<< "\t" << "virtual void Notify" << it->GetFriendlyName() << "(const Value& cookie = Empty);" << std::endl;
|
||||
|
||||
m_Impl << "void ObjectImpl<" << klass.Name << ">::Notify" << it->GetFriendlyName() << "(const Value& cookie)" << std::endl
|
||||
<< "{" << std::endl
|
||||
<< "\t" << "ConfigObject *dobj = dynamic_cast<ConfigObject *>(this);" << std::endl;
|
||||
<< "{" << std::endl;
|
||||
|
||||
if (it->Name != "active") {
|
||||
m_Impl << "\t" << "if (!dobj || dobj->IsActive())" << std::endl
|
||||
m_Impl << "\t" << "ConfigObject *dobj = dynamic_cast<ConfigObject *>(this);" << std::endl
|
||||
<< "\t" << "if (!dobj || dobj->IsActive())" << std::endl
|
||||
<< "\t";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user