mirror of https://github.com/Icinga/icinga2.git
parent
63a1ff77c3
commit
865344ec57
|
@ -754,10 +754,9 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||
m_Impl << it->SetAccessor << std::endl << std::endl;
|
||||
|
||||
if (it->Type.IsName || !it->TrackAccessor.empty()) {
|
||||
m_Impl << "\t" << "ConfigObject *dobj = dynamic_cast<ConfigObject *>(this);" << 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…
Reference in New Issue