From d5e9e1661a6e4532027d85c153468d48233e3879 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 9 Feb 2015 14:09:43 +0100 Subject: [PATCH] Don't set up instance variables for fields which have been marked as no_storage fixes #8400 --- tools/mkclass/classcompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.40.0