From: Gunnar Beutner Date: Mon, 9 Feb 2015 13:09:43 +0000 (+0100) Subject: Don't set up instance variables for fields which have been marked as no_storage X-Git-Tag: v2.3.0~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5e9e1661a6e4532027d85c153468d48233e3879;p=icinga2 Don't set up instance variables for fields which have been marked as no_storage fixes #8400 --- diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index f1b180d62..7dc7b1580 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -526,7 +526,8 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) std::cout << "private:" << std::endl; for (it = klass.Fields.begin(); it != klass.Fields.end(); it++) { - std::cout << "\t" << it->Type << " m_" << it->GetFriendlyName() << ";" << std::endl; + if (!(it->Attributes & FANoStorage)) + std::cout << "\t" << it->Type << " m_" << it->GetFriendlyName() << ";" << std::endl; } }