From 5c2584bb682634785c12ffb4fbf4d4678991ff40 Mon Sep 17 00:00:00 2001 From: Cedric Borgese Date: Tue, 19 Jul 2005 17:31:23 +0000 Subject: Move a variable declaration at the top of the main function. --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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; -- cgit v1.2.3-70-g09d2