A bit of code cleanup of Lua tagtransform code
parent
fa4a9ef535
commit
55aa66a82a
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue