mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 21:14:35 +03:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user