mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Revert unneccessary dynamic_pointer_cast
This commit is contained in:
parent
1b81b85582
commit
a908f84750
@ -199,7 +199,7 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* 'zone' is available for all config objects, therefore calculate the checksum. */
|
/* 'zone' is available for all config objects, therefore calculate the checksum. */
|
||||||
auto zone (dynamic_pointer_cast<Zone>(object->GetZone()));
|
auto zone (static_pointer_cast<Zone>(object->GetZone()));
|
||||||
|
|
||||||
if (zone)
|
if (zone)
|
||||||
checkSums->Set("zone_checksum", GetIdentifier(zone));
|
checkSums->Set("zone_checksum", GetIdentifier(zone));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user