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:
Vadim Zeitlin 2008-03-15 03:05:28 +00:00
parent e072113323
commit 2f74c9c6b5

View File

@ -45,7 +45,7 @@ public:
virtual wxString GetValue() const = 0;
virtual wxString GetRange(long from, long to) const;
bool IsEmpty() const { return GetValue().empty(); }
bool IsEmpty() const { return GetLastPosition() > 0; }
// editing operations