mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
0c25d14d0c
commit
2d9be77260
@ -77,15 +77,9 @@ Dictionary::Ptr RedisWriter::SerializeObjectAttrs(const Object::Ptr& object, int
|
|||||||
{
|
{
|
||||||
Type::Ptr type = object->GetReflectionType();
|
Type::Ptr type = object->GetReflectionType();
|
||||||
|
|
||||||
std::vector<int> fids;
|
|
||||||
|
|
||||||
for (int fid = 0; fid < type->GetFieldCount(); fid++) {
|
|
||||||
fids.push_back(fid);
|
|
||||||
}
|
|
||||||
|
|
||||||
Dictionary::Ptr resultAttrs = new Dictionary();
|
Dictionary::Ptr resultAttrs = new Dictionary();
|
||||||
|
|
||||||
for (int& fid : fids) {
|
for (int fid = 0; fid < type->GetFieldCount(); fid++) {
|
||||||
Field field = type->GetFieldInfo(fid);
|
Field field = type->GetFieldInfo(fid);
|
||||||
|
|
||||||
if ((field.Attributes & fieldType) == 0)
|
if ((field.Attributes & fieldType) == 0)
|
||||||
|
@ -83,7 +83,7 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje
|
|||||||
|
|
||||||
Dictionary::Ptr resultAttrs = new Dictionary();
|
Dictionary::Ptr resultAttrs = new Dictionary();
|
||||||
|
|
||||||
for (int& fid : fids)
|
for (int fid : fids)
|
||||||
{
|
{
|
||||||
Field field = type->GetFieldInfo(fid);
|
Field field = type->GetFieldInfo(fid);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user