X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..8adb5d455797d5b656ef677c74359e5a578b539f:/src/common/dynload.cpp diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index 4c86a5e19a..a03732173c 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -7,7 +7,7 @@ // Created: 03/12/01 // RCS-ID: $Id$ // Copyright: (c) 2001 Ron Lee -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -279,7 +279,6 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const if ( !symbol ) { - wxString msg(_("wxDynamicLibrary failed to GetSymbol '%s'")); #if defined(HAVE_DLERROR) && !defined(__EMX__) #if wxUSE_UNICODE @@ -291,8 +290,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const if( err ) { - failed = TRUE; - wxLogError( msg, err ); + wxLogError(wxT("%s"), err); } #else failed = TRUE; @@ -469,7 +467,7 @@ void wxPluginLibrary::RegisterModules() wxASSERT_MSG( m_linkcount == 1, _T("RegisterModules should only be called for the first load") ); - for(wxClassInfo *info = m_after; info != m_before; info = info->m_next) + for ( wxClassInfo *info = m_after; info != m_before; info = info->m_next) { if( info->IsKindOf(CLASSINFO(wxModule)) ) { @@ -484,7 +482,9 @@ void wxPluginLibrary::RegisterModules() // FIXME: Likewise this is (well was) very similar to InitializeModules() - for(wxModuleList::Node *node = m_wxmodules.GetFirst(); node; node->GetNext()) + for ( wxModuleList::Node *node = m_wxmodules.GetFirst(); + node; + node = node->GetNext()) { if( !node->GetData()->Init() ) { @@ -515,10 +515,10 @@ void wxPluginLibrary::UnregisterModules() { wxModuleList::Node *node; - for(node = m_wxmodules.GetFirst(); node; node->GetNext()) + for ( node = m_wxmodules.GetFirst(); node; node = node->GetNext() ) node->GetData()->Exit(); - for(node = m_wxmodules.GetFirst(); node; node->GetNext()) + for ( node = m_wxmodules.GetFirst(); node; node = node->GetNext() ) wxModule::UnregisterModule( node->GetData() ); m_wxmodules.DeleteContents(TRUE);