mirror of https://github.com/Icinga/icinga2.git
Don't set up instance variables for fields which have been marked as no_storage
fixes #8400
This commit is contained in:
parent
278c6ae52b
commit
d5e9e1661a
|
@ -526,6 +526,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
||||||
std::cout << "private:" << std::endl;
|
std::cout << "private:" << std::endl;
|
||||||
|
|
||||||
for (it = klass.Fields.begin(); it != klass.Fields.end(); it++) {
|
for (it = klass.Fields.begin(); it != klass.Fields.end(); it++) {
|
||||||
|
if (!(it->Attributes & FANoStorage))
|
||||||
std::cout << "\t" << it->Type << " m_" << it->GetFriendlyName() << ";" << std::endl;
|
std::cout << "\t" << it->Type << " m_" << it->GetFriendlyName() << ";" << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue