X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecadfc3f5a675d60fd5711c38a7b53f83079e5c5..f97c985452b20a8c2f0bbfb1d0275298bf09fb45:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 3b2512c3dd..44d6803a1b 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -254,13 +254,13 @@ public: /** @name generic attributes & operations */ //@{ /// as standard strlen() - size_t Len() const { return GetStringData() ? GetStringData()->nDataLength : 0; } + size_t Len() const { return GetStringData()->nDataLength; } /// string contains any characters? bool IsEmpty() const { return Len() == 0; } /// reinitialize string (and free data!) void Empty() { - if ( GetStringData() && GetStringData()->nDataLength != 0 ) + if ( GetStringData()->nDataLength != 0 ) Reinit(); wxASSERT( GetStringData()->nDataLength == 0 );