]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Initialize some members in initialization lists
[stg.git] / projects / stargazer / main.cpp
index 7cab078d87bbe567c680b2021a6442e8312b44f7..5b4a06fcfed7983190781c919d8c72727ae4d714 100644 (file)
@@ -93,8 +93,8 @@ return lhs.GetStopPosition() > rhs.GetStopPosition();
 class STG_STOPPER
 {
 public:
-    STG_STOPPER() { nonstop = true; }
-    bool    GetStatus() const { return nonstop; };
+    STG_STOPPER() : nonstop(true) {}
+    bool    GetStatus() const { return nonstop; }
     #ifdef NO_DAEMON
     void    Stop(const char * __file__, int __line__)
     #else