From a81542eeee467a3e9aa8af55737cec62de4dba7b Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 10 Feb 2015 10:07:35 +0100 Subject: [PATCH] add virtual keyword to functions with override final specifiers --- descriptors/json_descriptor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {