]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/windowid.h
Don't use wxCriticalSection in wxWakeUpPipeMT if wxUSE_THREADS==0.
[wxWidgets.git] / include / wx / windowid.h
index e16b4534abe50f7cc078d502e0ac523974ef2b88..2360085c7f42ce22a441cab5879a21d3eed10c0f 100644 (file)
@@ -43,7 +43,7 @@ public:
 
     wxWindowIDRef(long id)
     {
-        Init(id);
+        Init(wxWindowID(id));
     }
 
     wxWindowIDRef(const wxWindowIDRef& id)
@@ -66,7 +66,7 @@ public:
 
     wxWindowIDRef& operator=(long id)
     {
-        Assign(id);
+        Assign(wxWindowID(id));
         return *this;
     }