Rename and a small simplification. Thanks, Clemens and Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40756 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
BString& SetToChars(const BString& string, int32 charCount);
|
||||
BString& AdoptChars(BString& from, int32 charCount);
|
||||
|
||||
BString& SetToArguments(const char* format, ...);
|
||||
BString& SetToFormat(const char* format, ...);
|
||||
|
||||
// Substring copying
|
||||
BString& CopyInto(BString& into, int32 fromOffset,
|
||||
|
||||
@@ -425,7 +425,7 @@ BString::AdoptChars(BString& string, int32 charCount)
|
||||
|
||||
|
||||
BString&
|
||||
BString::SetToArguments(const char* format, ...)
|
||||
BString::SetToFormat(const char* format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
va_start(arg, format);
|
||||
@@ -433,7 +433,8 @@ BString::SetToArguments(const char* format, ...)
|
||||
va_end(arg);
|
||||
|
||||
if (bytes <= Length()) {
|
||||
bytes = bytes < 0 ? 0 : bytes;
|
||||
if (bytes < 0)
|
||||
bytes = 0;
|
||||
UnlockBuffer(bytes);
|
||||
} else {
|
||||
va_list arg2;
|
||||
|
||||
Reference in New Issue
Block a user