]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/help.hpp
qt4: cleaning the singletons implementation.
[vlc] / modules / gui / qt4 / dialogs / help.hpp
index af4ea4fd9e82d7c41e860e841a832f02442d07a0..c6cde3a05be2b8409ce35ef8107d94c2f4c78012 100644 (file)
@@ -50,12 +50,14 @@ public:
         return instance;
     }
     static void killInstance()
-    { if( instance ) delete instance; instance = NULL;}
-    virtual ~HelpDialog();
+    { delete instance; instance = NULL;}
 
 private:
     HelpDialog( intf_thread_t * );
+    virtual ~HelpDialog();
+
     static HelpDialog *instance;
+
 public slots:
     void close();
 };
@@ -99,7 +101,7 @@ public:
         return instance;
     }
     static void killInstance()
-    { if( instance ) delete instance; instance = NULL;}
+    { delete instance; instance = NULL;}
 
     void updateNotify( bool );