gcc 2.95 build fix

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36953 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2010-05-27 18:55:28 +00:00
parent f33637d9a8
commit 31a3c4e885
@@ -546,7 +546,9 @@ NotificationView::SetText(const char* app, const char* title, const char* text,
// Start a new line if either we didn't start one before,
// the current offset
BString tempText(line != NULL ? line->text : "");
BString tempText;
if (line != NULL)
tempText.SetTo(line->text);
tempText.Append(chunkStart, chunkLength);
if (line == NULL || chunkStart[0] == '\n'
@@ -605,7 +607,8 @@ NotificationView::SetText(const char* app, const char* title, const char* text,
fHeight = minHeight;
}
BMessenger(Parent()).SendMessage(kResizeToFit);
BMessenger messenger(Parent());
messenger.SendMessage(kResizeToFit);
}