From 566af6827e5a73f5bf9180e899704673b49b3240 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Jul 2018 20:23:37 +0200 Subject: [PATCH] config/Param: inline the constructor --- src/config/Param.cxx | 3 --- src/config/Param.hxx | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config/Param.cxx b/src/config/Param.cxx index a14d18524..bb1962e7d 100644 --- a/src/config/Param.cxx +++ b/src/config/Param.cxx @@ -25,9 +25,6 @@ #include -ConfigParam::ConfigParam(const char *_value, int _line) - :value(_value), line(_line) {} - ConfigParam::~ConfigParam() { delete next; diff --git a/src/config/Param.hxx b/src/config/Param.hxx index 744583b8b..29338dd69 100644 --- a/src/config/Param.hxx +++ b/src/config/Param.hxx @@ -48,7 +48,8 @@ struct ConfigParam { :line(_line) {} gcc_nonnull_all - ConfigParam(const char *_value, int _line=-1); + explicit ConfigParam(const char *_value, int _line=-1) noexcept + :value(_value), line(_line) {} ConfigParam(const ConfigParam &) = delete;