]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/private.h
Added new __WXMOTIF20__ macro, which is true if the Motif version
[wxWidgets.git] / include / wx / motif / private.h
index b58c0ed7f73e690bbecc9c2a0eb2e3e5e5ddc429..f070db4763c1ab402474f19ab78fac083e7683ba 100644 (file)
@@ -109,7 +109,10 @@ public:
         m_string = XmStringCreateLtoR((char *)str.c_str(),
             XmSTRING_DEFAULT_CHARSET);
     }
-    
+
+    // just to avoid calling XmStringFree()
+    wxXmString(const XmString& string) { m_string = string; }
+
     ~wxXmString() { XmStringFree(m_string); }
     
     // semi-implicit conversion to XmString (shouldn't rely on implicit