Fix compiler warning

fixes #10012
This commit is contained in:
Gunnar Beutner 2015-08-27 14:31:24 +02:00
parent 63a1ff77c3
commit 865344ec57
1 changed files with 2 additions and 3 deletions

View File

@ -754,10 +754,9 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
m_Impl << it->SetAccessor << std::endl << std::endl; m_Impl << it->SetAccessor << std::endl << std::endl;
if (it->Type.IsName || !it->TrackAccessor.empty()) { if (it->Type.IsName || !it->TrackAccessor.empty()) {
m_Impl << "\t" << "ConfigObject *dobj = dynamic_cast<ConfigObject *>(this);" << std::endl;
if (it->Name != "active") { 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"; << "\t";
} }