mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Add override keyword
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ String Error::what() const {
|
||||
const wxString& GetStackTrace() const { return m_stackTrace; }
|
||||
|
||||
protected:
|
||||
virtual void OnStackFrame(const wxStackFrame& frame) {
|
||||
void OnStackFrame(const wxStackFrame& frame) override {
|
||||
m_stackTrace << wxString::Format(_("[%02d] "), frame.GetLevel());
|
||||
|
||||
wxString name = frame.GetName();
|
||||
|
||||
@@ -158,7 +158,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
wxDirTraverseResult OnFile(const String& filename) {
|
||||
wxDirTraverseResult OnFile(const String& filename) override {
|
||||
if (!remove_file(filename)) {
|
||||
ok = false;
|
||||
handle_error(_("Cannot delete ") + filename + _("\n")
|
||||
@@ -167,7 +167,7 @@ public:
|
||||
}
|
||||
return wxDIR_CONTINUE;
|
||||
}
|
||||
wxDirTraverseResult OnDir(const String& dirname) {
|
||||
wxDirTraverseResult OnDir(const String& dirname) override {
|
||||
to_delete.push_back(dirname);
|
||||
return wxDIR_CONTINUE;
|
||||
}
|
||||
@@ -210,11 +210,11 @@ public:
|
||||
IgnoredMover(const String& from, const String& to)
|
||||
: from(from), to(to)
|
||||
{}
|
||||
wxDirTraverseResult OnFile(const String& filename) {
|
||||
wxDirTraverseResult OnFile(const String& filename) override {
|
||||
tryMove(filename);
|
||||
return wxDIR_CONTINUE;
|
||||
}
|
||||
wxDirTraverseResult OnDir(const String& dirname) {
|
||||
wxDirTraverseResult OnDir(const String& dirname) override {
|
||||
return tryMove(dirname) ? wxDIR_IGNORE : wxDIR_CONTINUE;
|
||||
}
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user