diff --git a/interface/wx/string.h b/interface/wx/string.h index 9cecd3ff16..a10dd6d7c5 100644 --- a/interface/wx/string.h +++ b/interface/wx/string.h @@ -1428,8 +1428,12 @@ public: bool Alloc(size_t nLen); /** - Minimizes the string's memory. This can be useful after a call to - Alloc() if too much memory were preallocated. + Minimizes the string's memory. + + This can be useful after a call to Alloc() if too much memory were + preallocated. + + @return Always returns @true */ bool Shrink(); diff --git a/src/common/string.cpp b/src/common/string.cpp index f741eb536e..d2bcac8b03 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -555,7 +555,7 @@ bool wxString::Shrink() { wxString tmp(begin(), end()); swap(tmp); - return tmp.length() == length(); + return true; } // deprecated compatibility code: