Return empty string from wxDisplayImpl::GetName() by default

Simplify the code by not making this function pure virtual as all the
ports except MSW had to override it just to return an empty string.

Instead, just return empty string by default as it's not critical to
force the derived classes to override this function.
This commit is contained in:
Vadim Zeitlin
2018-10-04 16:37:12 +02:00
parent f704c40207
commit 9cc1424b84
5 changed files with 1 additions and 19 deletions

View File

@@ -132,8 +132,6 @@ public:
return IsPrimary() ? wxGetMainScreenWorkArea() : m_rect;
}
virtual wxString GetName() const wxOVERRIDE { return wxString(); }
virtual wxArrayVideoModes GetModes(const wxVideoMode& mode) const wxOVERRIDE;
virtual wxVideoMode GetCurrentMode() const wxOVERRIDE;
virtual bool ChangeMode(const wxVideoMode& mode) wxOVERRIDE;