]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/choice.cpp
don't use wx/scopeguard.h for OpenWatcom compatibility (grr...)
[wxWidgets.git] / src / mac / choice.cpp
index c130d3798aa099eb4a68f8d16755fe6194fcd73b..c963dcad3271faf238ae96a51b3ea303e50c752a 100644 (file)
@@ -272,8 +272,7 @@ wxSize wxChoice::DoGetBestSize() const
                 &baseline );
             wLine = bounds.h ;
         #else
-            wxCharBuffer text = wxMacStringToCString( str ) ;
-            wLine = ::TextWidth( text , 0 , strlen(text) ) ;
+            wLine = ::TextWidth( str.c_str() , 0 , str.Length() ) ;
         #endif
             lbWidth = wxMax(lbWidth, wLine);
         }