mirror of https://github.com/Icinga/icinga2.git
parent
0c25d14d0c
commit
2d9be77260
|
@ -77,15 +77,9 @@ Dictionary::Ptr RedisWriter::SerializeObjectAttrs(const Object::Ptr& object, int
|
|||
{
|
||||
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();
|
||||
|
||||
for (int& fid : fids) {
|
||||
for (int fid = 0; fid < type->GetFieldCount(); fid++) {
|
||||
Field field = type->GetFieldInfo(fid);
|
||||
|
||||
if ((field.Attributes & fieldType) == 0)
|
||||
|
|
|
@ -83,7 +83,7 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje
|
|||
|
||||
Dictionary::Ptr resultAttrs = new Dictionary();
|
||||
|
||||
for (int& fid : fids)
|
||||
for (int fid : fids)
|
||||
{
|
||||
Field field = type->GetFieldInfo(fid);
|
||||
|
||||
|
|
Loading…
Reference in New Issue