]> git.saurik.com Git - wxWidgets.git/commitdiff
fix the old code for dlerror() returning const char as well (why was it changed?)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Dec 2001 14:52:18 +0000 (14:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Dec 2001 14:52:18 +0000 (14:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynlib.cpp

index 025667914bd5419215abd87e82b3eac3d5698c07..6b824855ad2720cd26ec211df4b399d2d34b7f62 100644 (file)
@@ -268,7 +268,7 @@ wxDllType wxDllLoader::LoadLibrary(const wxString & libname, bool *success)
         wxString msg(_("Failed to load shared library '%s'"));
 
 #ifdef HAVE_DLERROR
-        wxChar  *err = dlerror();
+        const wxChar *err = dlerror();
         if( err )
         {
             failed = TRUE;
@@ -327,7 +327,7 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su
         wxString msg(_("wxDllLoader failed to GetSymbol '%s'"));
 
 #ifdef HAVE_DLERROR
-        wxChar  *err = dlerror();
+        const wxChar *err = dlerror();
         if( err )
         {
             failed = TRUE;