From e7bf98adc16c8113cb0d2494ab370bcd097c2a99 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 24 Oct 2022 21:51:50 -0500 Subject: [PATCH] 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`. --- src/parser.cpp | 2 -- src/parser.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 419f7357d..287d294a9 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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()) { diff --git a/src/parser.h b/src/parser.h index de2e11ef9..54163e10e 100644 --- a/src/parser.h +++ b/src/parser.h @@ -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 {