summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Borgese <cedric.borgese@gmail.com>2005-07-19 17:31:23 +0000
committerCedric Borgese <cedric.borgese@gmail.com>2005-07-19 17:31:23 +0000
commit5c2584bb682634785c12ffb4fbf4d4678991ff40 (patch)
tree38a7fab61f58d53cf10f715c071e1cfb333c5b7b
parent49c1cf9925c307101f40966499e62dda47ac754a (diff)
downloadMana-5c2584bb682634785c12ffb4fbf4d4678991ff40.tar.gz
Mana-5c2584bb682634785c12ffb4fbf4d4678991ff40.tar.bz2
Mana-5c2584bb682634785c12ffb4fbf4d4678991ff40.tar.xz
Mana-5c2584bb682634785c12ffb4fbf4d4678991ff40.zip
Move a variable declaration at the top of the main function.
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7cc83be5..f99e781c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -371,6 +371,8 @@ int exists(const std::string &file)
/** Main */
int main(int argc, char *argv[])
{
+ UpdaterWindow *uw;
+
// Initialize libxml2 and check for potential ABI mismatches between
// compiled version and the shared library actually used.
xmlInitParser();
@@ -439,7 +441,7 @@ int main(int argc, char *argv[])
graphics->updateScreen();
break;
case UPDATE:
- UpdaterWindow *uw = new UpdaterWindow();
+ uw = new UpdaterWindow();
uw->updateData();
delete uw;
break;