Skip to content

Commit 6ee61e4

Browse files
tobifalkcassava
authored andcommitted
gndtruth_extractor: Fix compiler warning
1 parent 988bf3d commit 6ee61e4

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

plugins/gndtruth_extractor/src/gndtruth_extractor.cpp

+12-10
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ using namespace cloe::utility; // NOLINT(build/namespaces)
3333
#include "enumconfable.hpp" // for EnumConfable
3434

3535
namespace cloe {
36-
namespace controller {
3736

3837
enum OutputTypeEnum {
3938
JSON_BZIP2,
@@ -49,18 +48,20 @@ enum OutputTypeEnum {
4948
typedef EnumStringConfable<OutputTypeEnum> OutputType;
5049

5150
// clang-format off
52-
IMPLEMENT_ENUMSTRINGMAP(cloe::controller::OutputTypeEnum)
53-
(cloe::controller::OutputTypeEnum::JSON_BZIP2 , "json.bz2" )
54-
(cloe::controller::OutputTypeEnum::JSON_GZIP , "json.gz" )
55-
(cloe::controller::OutputTypeEnum::JSON_ZIP , "json.zip" )
56-
(cloe::controller::OutputTypeEnum::JSON , "json" )
57-
(cloe::controller::OutputTypeEnum::MSGPACK_BZIP2, "msgpack.bz2" )
58-
(cloe::controller::OutputTypeEnum::MSGPACK_GZIP , "msgpack.gz" )
59-
(cloe::controller::OutputTypeEnum::MSGPACK_ZIP , "msgpack.zip" )
60-
(cloe::controller::OutputTypeEnum::MSGPACK , "msgpack" )
51+
IMPLEMENT_ENUMSTRINGMAP(cloe::OutputTypeEnum)
52+
(cloe::OutputTypeEnum::JSON_BZIP2 , "json.bz2" )
53+
(cloe::OutputTypeEnum::JSON_GZIP , "json.gz" )
54+
(cloe::OutputTypeEnum::JSON_ZIP , "json.zip" )
55+
(cloe::OutputTypeEnum::JSON , "json" )
56+
(cloe::OutputTypeEnum::MSGPACK_BZIP2, "msgpack.bz2" )
57+
(cloe::OutputTypeEnum::MSGPACK_GZIP , "msgpack.gz" )
58+
(cloe::OutputTypeEnum::MSGPACK_ZIP , "msgpack.zip" )
59+
(cloe::OutputTypeEnum::MSGPACK , "msgpack" )
6160
;
6261
// clang-format on
6362

63+
namespace controller {
64+
6465
struct GndTruthExtractorConfiguration : public Confable {
6566
std::string output_file;
6667
OutputType output_type;
@@ -154,6 +155,7 @@ class GndTruthSerializerImpl
154155
public:
155156
GndTruthSerializerImpl(Logger& logger) : base1(logger), GndTruthSerializer() {}
156157
virtual ~GndTruthSerializerImpl() override;
158+
using base1::open_file;
157159
virtual void open_file(const std::string& filename) override {
158160
std::string default_name = this->outputstream_.make_default_filename(
159161
this->serializer_.make_default_filename(default_filename));

0 commit comments

Comments
 (0)