]> git.saurik.com Git - wxWidgets.git/commitdiff
implement Empty() using clear() instead of Truncate(0)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Sep 2008 22:19:42 +0000 (22:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Sep 2008 22:19:42 +0000 (22:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 98d5c6da715b9b8f18961c8304baf096012cbdc8..1e8be0ca2371446f7bba615c3613335fc75a6b3c 100644 (file)
@@ -1450,12 +1450,7 @@ public:
     // truncate the string to given length
   wxString& Truncate(size_t uiLen);
     // empty string contents
-  void Empty()
-  {
-    Truncate(0);
-
-    wxASSERT_MSG( empty(), _T("string not empty after call to Empty()?") );
-  }
+  void Empty() { clear(); }
     // empty the string and free memory
   void Clear() { clear(); }