summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
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();