]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/recents.hpp
qt4: cleaning the singletons implementation.
[vlc] / modules / gui / qt4 / recents.hpp
index d85051948e5e9139af2148cad3ab8a01837efd39..d3deb953460f48e89d36e868722d9e8771a2672b 100644 (file)
@@ -47,10 +47,9 @@ public:
     }
     static void killInstance()
     {
-        if( instance ) delete instance;
+        delete instance;
         instance = NULL;
     }
-    virtual ~RecentsMRL();
 
     void addRecent( const QString & );
     QList<QString> recents();
@@ -58,9 +57,12 @@ public:
 
 private:
     RecentsMRL( intf_thread_t* _p_intf );
+    virtual ~RecentsMRL();
+
+    static RecentsMRL *instance;
+
     void load();
     void save();
-    static RecentsMRL *instance;
     intf_thread_t* p_intf;
     QList<QString> *stack;
     bool isActive;