]> git.lyx.org Git - lyx.git/blobdiff - sigc++/thread.h
Mostly fixed the 'empty paragraph deletion kills the cursor' problem; and initialise...
[lyx.git] / sigc++ / thread.h
index ae9696a654e38f9d10b9aa7c39c97470c9b3b399..aa9aa380c2e69377244a70beb10e57846005949b 100644 (file)
@@ -191,13 +191,13 @@ class Private<int> : private Private_
         int& operator =(const int& t)
           {return (((int&)*this)=t);}
 
-         operator int& ();
-          //{
-          // int *value=(int*)get();
-          // if (!value)
-          //   set((void*)(value=new int(0)));  
-          // return *(value); 
-          //}
+        operator int& ()
+          {
+           int *value=(int*)get();
+           if (!value)
+             set((void*)(value=new int(0)));  
+           return *(value); 
+          }
 
         Private() { create(&dtor); }
         ~Private() { destroy(); }