diff --git a/descriptors/json_descriptor.hpp b/descriptors/json_descriptor.hpp index d7e824482..a87d598cd 100644 --- a/descriptors/json_descriptor.hpp +++ b/descriptors/json_descriptor.hpp @@ -77,7 +77,7 @@ template class JSONDescriptor final : public BaseDescriptor< { } - void SetConfig(const DescriptorConfig &c) override final { config = c; } + virtual void SetConfig(const DescriptorConfig &c) override final { config = c; } unsigned DescribeLeg(const std::vector route_leg, const PhantomNodes &leg_phantoms, @@ -100,7 +100,7 @@ template class JSONDescriptor final : public BaseDescriptor< return added_element_count; } - void Run(const InternalRouteResult &raw_route, JSON::Object &json_result) override final + virtual void Run(const InternalRouteResult &raw_route, JSON::Object &json_result) override final { if (INVALID_EDGE_WEIGHT == raw_route.shortest_path_length) {