Cleanup pointed out by axel.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34481 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2009-12-03 21:59:08 +00:00
parent 63a39e24d0
commit e508a7fbd3
+10 -4
View File
@@ -14,6 +14,7 @@
#include <GroupLayoutBuilder.h>
#include <Locale.h>
#include "TouchpadPrefView.h"
@@ -21,7 +22,8 @@ class TouchpadPrefWindow : public BWindow {
public:
TouchpadPrefWindow(BRect frame, const char* title, window_type type,
uint32 flags)
: BWindow(frame, title, type, flags)
:
BWindow(frame, title, type, flags)
{
}
@@ -32,16 +34,19 @@ public:
}
};
#undef TR_CONTEXT
#define TR_CONTEXT "TouchpadMain"
int
main(int argc, char* argv[])
{
BApplication* app = new BApplication("application/x-vnd.Haiku-Touchpad");
BCatalog fCatalog;
be_locale->GetAppCatalog(&fCatalog);
BCatalog catalog;
be_locale->GetAppCatalog(&catalog);
TouchpadPrefWindow* window = new TouchpadPrefWindow(BRect(50, 50, 450, 350),
TR("Touchpad"), B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
| B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS);
@@ -52,8 +57,9 @@ main(int argc, char* argv[])
.SetInsets(5, 5, 5, 5)
);
window->Show();
app->Run();
app->Run();
delete app;
return 0;
}