use less expensive GetLastPosition() instead of GetValue() to implement IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
virtual wxString GetValue() const = 0;
|
virtual wxString GetValue() const = 0;
|
||||||
virtual wxString GetRange(long from, long to) const;
|
virtual wxString GetRange(long from, long to) const;
|
||||||
bool IsEmpty() const { return GetValue().empty(); }
|
bool IsEmpty() const { return GetLastPosition() > 0; }
|
||||||
|
|
||||||
|
|
||||||
// editing operations
|
// editing operations
|
||||||
|
Reference in New Issue
Block a user