Make block_t moveable

The presence of the explicit constructor (even though it did nothing) prevented
the compiler from generating a move constructor for `block_t`.
This commit is contained in:
Mahmoud Al-Qudsi 2022-10-24 21:51:50 -05:00
parent 84b53b4cae
commit e7bf98adc1
2 changed files with 0 additions and 4 deletions

View File

@ -666,8 +666,6 @@ void parser_t::get_backtrace(const wcstring &src, const parse_error_list_t &erro
block_t::block_t(block_type_t t) : block_type(t) {}
block_t::~block_t() = default;
wcstring block_t::description() const {
wcstring result;
switch (this->type()) {

View File

@ -121,8 +121,6 @@ class block_t {
static block_t scope_block(block_type_t type);
static block_t breakpoint_block();
static block_t variable_assignment_block();
~block_t();
};
struct profile_item_t {