Diffstat (limited to 'noncore/apps/tableviewer/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tableviewer/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/tableviewer/main.cpp b/noncore/apps/tableviewer/main.cpp index 56c567f..d17ee65 100644 --- a/noncore/apps/tableviewer/main.cpp +++ b/noncore/apps/tableviewer/main.cpp @@ -19,14 +19,14 @@ **********************************************************************/ #include "tableviewer.h" #include <qpe/qpeapplication.h> int main( int argc, char ** argv ) { QPEApplication a( argc, argv ); - TableViewerWindow * mw = new TableViewerWindow; - mw->setCaption( TableViewerWindow::tr("Table Viewer") ); - a.showMainWidget(mw); + TableViewerWindow mw; + mw.setCaption( TableViewerWindow::tr("Table Viewer") ); + a.showMainWidget(&mw); return a.exec(); } |