Get rid of the _Init() method in BAboutWindow, just the single constructor body.

This commit is contained in:
John Scipione
2012-11-12 23:57:31 -05:00
parent 97a814061e
commit d156f97655
2 changed files with 13 additions and 26 deletions
-3
View File
@@ -34,9 +34,6 @@ class BAboutWindow : public BWindow {
BPoint AboutPosition(float width, float height);
protected:
void _Init(const char* appName, const char* signature);
private:
AboutView* fAboutView;
BHandler* fCaller;
+13 -23
View File
@@ -259,7 +259,19 @@ BAboutWindow::BAboutWindow(const char* appName, const char* signature)
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_NOT_RESIZABLE
| B_AUTO_UPDATE_SIZE_LIMITS)
{
_Init(appName, signature);
SetLayout(new BGroupLayout(B_VERTICAL));
const char* about = B_TRANSLATE_MARK("About");
about = gSystemCatalog.GetString(about, "AboutWindow");
BString title(about);
title << " " << appName;
SetTitle(title.String());
fAboutView = new AboutView(appName, signature);
AddChild(fAboutView);
MoveTo(AboutPosition(Frame().Width(), Frame().Height()));
}
@@ -453,25 +465,3 @@ BAboutWindow::AboutPosition(float width, float height)
return result;
}
// #pragma mark -
void
BAboutWindow::_Init(const char* appName, const char* signature)
{
SetLayout(new BGroupLayout(B_VERTICAL));
const char* about = B_TRANSLATE_MARK("About");
about = gSystemCatalog.GetString(about, "AboutWindow");
BString title(about);
title << " " << appName;
SetTitle(title.String());
fAboutView = new AboutView(appName, signature);
AddChild(fAboutView);
MoveTo(AboutPosition(Frame().Width(), Frame().Height()));
}