mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +08:00
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:
parent
84b53b4cae
commit
e7bf98adc1
|
@ -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()) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user