Revert unneccessary dynamic_pointer_cast

This commit is contained in:
Alexander A. Klimov 2018-07-23 17:52:29 +02:00 committed by Michael Friedrich
parent 1b81b85582
commit a908f84750

View File

@ -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));