]> granicus.if.org Git - icinga2/commitdiff
Don't set up instance variables for fields which have been marked as no_storage
authorGunnar Beutner <gunnar@beutner.name>
Mon, 9 Feb 2015 13:09:43 +0000 (14:09 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 9 Feb 2015 13:12:27 +0000 (14:12 +0100)
fixes #8400

tools/mkclass/classcompiler.cpp

index f1b180d62a36777397b2534da2c3f0a8da792c4d..7dc7b1580b2b60b5ba13327fda95a74e12cdd854 100644 (file)
@@ -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;
                }
        }