]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/application.h
Use default member initializers and constructor delegation
[libs/core.git] / source / core / application.h
index 59d5bf110e9706425f113dd43d1d7d0ef2ca1019..40215ef964aff63965d50cfb3fdd55f3fc4a3cd1 100644 (file)
@@ -23,8 +23,8 @@ protected:
                virtual Application *create_app(int, char **) = 0;
        };
 
-       bool done;
-       int exit_code;
+       bool done = false;
+       int exit_code = 0;
 
 private:
        static Starter *starter_;
@@ -46,7 +46,7 @@ public:
 
        This function can only be called once.  The global main() function provided
        by the library normally does it automatically at program startup. */
-       static int run(int, char **, void * =0, void (*)(void *) = 0);
+       static int run(int, char **, void * = 0, void (*)(void *) = 0);
 
        /** Sets application startup info, including argv[0] value and platform-
        specific data.