From 865344ec57efa1f661b327f7c0e3203d6521c5b6 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 27 Aug 2015 14:31:24 +0200 Subject: [PATCH] Fix compiler warning fixes #10012 --- tools/mkclass/classcompiler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index 12de1cbb3..91d035869 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -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(this);" << std::endl; - if (it->Name != "active") { - m_Impl << "\t" << "if (!dobj || dobj->IsActive())" << std::endl + m_Impl << "\t" << "ConfigObject *dobj = dynamic_cast(this);" << std::endl + << "\t" << "if (!dobj || dobj->IsActive())" << std::endl << "\t"; } -- 2.40.0