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

@@ -13,7 +13,7 @@
namespace asmjit_perf_utils {
class TestErrorHandler : public asmjit::ErrorHandler {
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 {
(void)err;
(void)origin;
printf("ERROR: %s\n", message);