]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynlib.cpp
Added inline setters for wxTreeEvent so we don't need to add new
[wxWidgets.git] / src / common / dynlib.cpp
index abf8d206a83d7b559bd433f4a213a1edb283ddcd..f55c803348a2592ce75ea01c80ca809aa686ebd9 100644 (file)
@@ -310,12 +310,8 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su
     CFragSymbolClass    symClass;
     Str255              symName;
 
-#if TARGET_CARBON
-    c2pstrcpy( (StringPtr) symName, name );
-#else
-    strcpy( (char *) symName, name );
-    c2pstr( (char *) symName );
-#endif
+       wxMacStringToPascal( name.c_str() , symName ) ;
+
     if( FindSymbol( ((CFragConnectionID)dllHandle), symName, &symAddress, &symClass ) == noErr )
         symbol = (void *)symAddress;