config/Param: inline the constructor

This commit is contained in:
Max Kellermann 2018-07-17 20:23:37 +02:00
parent bf046d895e
commit 566af6827e
2 changed files with 2 additions and 4 deletions

View File

@ -25,9 +25,6 @@
#include <stdexcept>
ConfigParam::ConfigParam(const char *_value, int _line)
:value(_value), line(_line) {}
ConfigParam::~ConfigParam()
{
delete next;

View File

@ -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;