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
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
}
} else {
/* '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)
checkSums->Set("zone_checksum", GetIdentifier(zone));