mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Use override rather than virtual.
This commit is contained in:
parent
2b847478a2
commit
b7d1753843
138 changed files with 1621 additions and 1624 deletions
|
@ -30,8 +30,8 @@ class cancel_eh : public event_handler {
|
|||
T & m_obj;
|
||||
public:
|
||||
cancel_eh(T & o): m_canceled(false), m_obj(o) {}
|
||||
~cancel_eh() { if (m_canceled) m_obj.dec_cancel(); }
|
||||
virtual void operator()(event_handler_caller_t caller_id) {
|
||||
~cancel_eh() override { if (m_canceled) m_obj.dec_cancel(); }
|
||||
void operator()(event_handler_caller_t caller_id) override {
|
||||
if (!m_canceled) {
|
||||
m_caller_id = caller_id;
|
||||
m_canceled = true;
|
||||
|
|
|
@ -33,8 +33,8 @@ class z3_error : public z3_exception {
|
|||
unsigned m_error_code;
|
||||
public:
|
||||
z3_error(unsigned error_code);
|
||||
virtual char const * msg() const;
|
||||
virtual unsigned error_code() const;
|
||||
char const * msg() const override;
|
||||
unsigned error_code() const override;
|
||||
};
|
||||
|
||||
class default_exception : public z3_exception {
|
||||
|
@ -43,8 +43,8 @@ public:
|
|||
struct fmt {};
|
||||
default_exception(std::string const& msg);
|
||||
default_exception(fmt, char const* msg, ...);
|
||||
virtual ~default_exception() {}
|
||||
virtual char const * msg() const;
|
||||
~default_exception() override {}
|
||||
char const * msg() const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue