A bit of code cleanup of Lua tagtransform code

HEAD
Jochen Topf 2022-04-08 21:29:58 +02:00
parent fa4a9ef535
commit 55aa66a82a
2 changed files with 3 additions and 4 deletions

View File

@ -14,9 +14,10 @@ extern "C"
}
#include "format.hpp"
#include "options.hpp"
#include "tagtransform-lua.hpp"
#include <stdexcept>
lua_tagtransform_t::lua_tagtransform_t(std::string const *tag_transform_script,
bool extra_attributes)
: m_lua_file(tag_transform_script), m_extra_attributes(extra_attributes)
@ -34,8 +35,6 @@ lua_tagtransform_t::lua_tagtransform_t(std::string const *tag_transform_script,
check_lua_function_exists(rel_mem_func);
}
lua_tagtransform_t::~lua_tagtransform_t() = default;
std::unique_ptr<tagtransform_t> lua_tagtransform_t::clone() const
{
return std::make_unique<lua_tagtransform_t>(m_lua_file, m_extra_attributes);

View File

@ -25,7 +25,7 @@ public:
explicit lua_tagtransform_t(std::string const *tag_transform_script,
bool extra_attributes);
~lua_tagtransform_t() override;
~lua_tagtransform_t() noexcept override = default;
std::unique_ptr<tagtransform_t> clone() const override;