]> granicus.if.org Git - icinga2/commitdiff
Fix formatting in mkclass
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 21 Aug 2015 12:38:56 +0000 (14:38 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 21 Aug 2015 12:38:56 +0000 (14:38 +0200)
fixes #9966

tools/mkclass/classcompiler.cpp

index 4a85acfbca6d9dfd33367681ad4a672da2ce284b..d079e569404533e0b1bcf0693bc5ae96cc3bedb6 100644 (file)
@@ -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 */