diff options
author | Cedric Borgese <cedric.borgese@gmail.com> | 2005-07-19 17:31:23 +0000 |
---|---|---|
committer | Cedric Borgese <cedric.borgese@gmail.com> | 2005-07-19 17:31:23 +0000 |
commit | 5c2584bb682634785c12ffb4fbf4d4678991ff40 (patch) | |
tree | 38a7fab61f58d53cf10f715c071e1cfb333c5b7b /src/main.cpp | |
parent | 49c1cf9925c307101f40966499e62dda47ac754a (diff) | |
download | mana-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.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
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; |