Simplification.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30646 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1419,7 +1419,7 @@ BString::LockBuffer(int32 maxLength)
|
|||||||
{
|
{
|
||||||
int32 length = Length();
|
int32 length = Length();
|
||||||
if (maxLength > length)
|
if (maxLength > length)
|
||||||
length += maxLength - length;
|
length = maxLength;
|
||||||
|
|
||||||
if (_DetachWith(fPrivateData, length) == B_OK) {
|
if (_DetachWith(fPrivateData, length) == B_OK) {
|
||||||
_ReferenceCount() = -1;
|
_ReferenceCount() = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user