Minor C++17 modernization

* Inspired by the one of the pull requests (#483)
  * Use std::make_unique to make a unique pointer (tests only)
  * Use override instead of virtual to override a virtual member
    function
This commit is contained in:
kobalicek
2025-09-08 09:41:28 +02:00
parent 13eb299dda
commit 32b5f78700
8 changed files with 182 additions and 182 deletions

View File

@@ -16,7 +16,7 @@ public:
SimpleErrorHandler()
: _err(asmjit::Error::kOk) {}
virtual void handle_error(asmjit::Error err, const char* message, asmjit::BaseEmitter* origin) {
void handle_error(asmjit::Error err, const char* message, asmjit::BaseEmitter* origin) override {
asmjit::Support::maybe_unused(origin);
_err = err;
_message.assign(message);