X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fccb5b4fd8fa0ff14e14002cfa95859c9b30708..d2ebf0b7303be387d2d5a55ea0cd672fdf0c4f25:/src/common/dynlib.cpp?ds=sidebyside diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 88f4b124bb..95f14b9e21 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -212,10 +212,9 @@ bool wxDynamicLibrary::Load(wxString libname, int flags) &myMainAddr, myErrName ) != noErr ) { - p2cstr( myErrName ); wxLogSysError( _("Failed to load shared library '%s' Error '%s'"), libname.c_str(), - (char*)myErrName ); + wxMacMakeStringFromPascal( myErrName ).c_str() ); m_handle = 0; } @@ -327,7 +326,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const wxCHECK_MSG( IsLoaded(), NULL, _T("Can't load symbol from unloaded library") ); - bool failed = FALSE; + bool failed = false; void *symbol = 0; wxUnusedVar(symbol); @@ -384,7 +383,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const wxLogError(wxT("%s"), err); } #else - failed = TRUE; + failed = true; wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"), name.c_str()); #endif