]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/app.cpp
Performance optimization
[wxWidgets.git] / src / mac / carbon / app.cpp
index 4a2bf618732431b9dceb17cd13e8d1365ec36759..62c6ee4992f7be7332f153c0eb8f2c788a2a874e 100644 (file)
@@ -39,6 +39,7 @@
 #include "wx/docview.h"
 #include "wx/filename.h"
 #include "wx/link.h"
+#include "wx/thread.h"
 
 #include <string.h>
 
@@ -821,7 +822,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
         CFRelease( url ) ;
         CFStringRef path = CFURLCopyFileSystemPath ( urlParent , kCFURLPOSIXPathStyle ) ;
         CFRelease( urlParent ) ;
-        wxString cwd = wxMacCFStringHolder(path).AsString(wxLocale::GetSystemEncoding());
+        wxString cwd = wxCFStringRef(path).AsString(wxLocale::GetSystemEncoding());
         wxSetWorkingDirectory( cwd ) ;
     }