radioapp/radiowidgets/src/radioutil.cpp
changeset 57 21be958eb3ce
parent 54 a8ba0c289b44
--- a/radioapp/radiowidgets/src/radioutil.cpp	Tue Oct 12 11:25:14 2010 +0300
+++ b/radioapp/radiowidgets/src/radioutil.cpp	Fri Oct 15 16:26:27 2010 +0300
@@ -29,8 +29,6 @@
 
 // Constants
 
-static RadioUtil* theInstance = 0;
-
 /*!
  *
  */
@@ -202,9 +200,7 @@
  */
 RadioUtil& RadioUtil::instance()
 {
-    if ( !::theInstance ) {
-        ::theInstance = new RadioUtil;
-    }
-    return *::theInstance;
+    static RadioUtil gInstance;
+    return gInstance;
 }