Just return true from wxString::Shrink()
The comparison of lengths() seems to be completely unnecessary. Also document that Shrink() always returns true.
This commit is contained in:
@@ -555,7 +555,7 @@ bool wxString::Shrink()
|
||||
{
|
||||
wxString tmp(begin(), end());
|
||||
swap(tmp);
|
||||
return tmp.length() == length();
|
||||
return true;
|
||||
}
|
||||
|
||||
// deprecated compatibility code:
|
||||
|
||||
Reference in New Issue
Block a user