From: Michael Friedrich Date: Fri, 21 Aug 2015 12:38:56 +0000 (+0200) Subject: Fix formatting in mkclass X-Git-Tag: v2.4.0~388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c20039dfe259b77ca413f7154b58dcf084dd8e3;p=icinga2 Fix formatting in mkclass fixes #9966 --- diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index 4a85acfbc..d079e5694 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -755,7 +755,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) << "\t"; } - m_Impl << "On" << it->GetFriendlyName() << "Changed(static_cast<" << klass.Name << " *>(this), cookie);" << std::endl + m_Impl << "\t" << "On" << it->GetFriendlyName() << "Changed(static_cast<" << klass.Name << " *>(this), cookie);" << std::endl << "}" << std::endl << std::endl; } @@ -772,9 +772,9 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) if (it->DefaultAccessor.empty()) m_Impl << "\t" << "return " << realType << "();" << std::endl; else - m_Impl << it->DefaultAccessor << std::endl; + m_Impl << "\t" << it->DefaultAccessor << std::endl; - m_Impl << "}" << std::endl; + m_Impl << "}" << std::endl << std::endl; } /* validators */