Simplification.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30646 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-05-06 15:26:30 +00:00
parent d837161f13
commit 96b5480b3f
+1 -1
View File
@@ -1419,7 +1419,7 @@ BString::LockBuffer(int32 maxLength)
{
int32 length = Length();
if (maxLength > length)
length += maxLength - length;
length = maxLength;
if (_DetachWith(fPrivateData, length) == B_OK) {
_ReferenceCount() = -1;