From 5acb9213cc2ee949a252a5c08a9a9a13542b94d5 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 20 Oct 2005 09:01:12 +0000 Subject: Various cleanups and refactorisations. --- src/gui/ok_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/ok_dialog.cpp') diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp index 8984c213..794bc723 100644 --- a/src/gui/ok_dialog.cpp +++ b/src/gui/ok_dialog.cpp @@ -48,8 +48,8 @@ OkDialog::~OkDialog() void OkDialog::init(const std::string &msg, gcn::ActionListener *listener) { - userLabel = new gcn::Label(msg); - okButton = new Button("OK"); + gcn::Label *userLabel = new gcn::Label(msg); + Button *okButton = new Button("OK"); int w = userLabel->getWidth() + 20; int h = userLabel->getHeight() + 25 + okButton->getHeight(); -- cgit v1.2.3-70-g09d2