implement Empty() using clear() instead of Truncate(0)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1450,12 +1450,7 @@ public:
|
|||||||
// truncate the string to given length
|
// truncate the string to given length
|
||||||
wxString& Truncate(size_t uiLen);
|
wxString& Truncate(size_t uiLen);
|
||||||
// empty string contents
|
// empty string contents
|
||||||
void Empty()
|
void Empty() { clear(); }
|
||||||
{
|
|
||||||
Truncate(0);
|
|
||||||
|
|
||||||
wxASSERT_MSG( empty(), _T("string not empty after call to Empty()?") );
|
|
||||||
}
|
|
||||||
// empty the string and free memory
|
// empty the string and free memory
|
||||||
void Clear() { clear(); }
|
void Clear() { clear(); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user