]> git.saurik.com Git - wxWidgets.git/commitdiff
return wxString from wxDynamicLibrary::GetDllExt()
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jun 2007 19:29:07 +0000 (19:29 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jun 2007 19:29:07 +0000 (19:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynlib.h
src/common/dynlib.cpp
src/msw/dlmsw.cpp
src/unix/dlunix.cpp

index 58c81afebd027a2733e7197a1cf0fe14215d1672..4bd00cf0f9bafc1f17d95d3664ef4b082979f2a5 100644 (file)
@@ -170,7 +170,7 @@ public:
     static wxDllType         GetProgramHandle();
 
     // return the platform standard DLL extension (with leading dot)
-    static const wxChar *GetDllExt() { return ms_dllext; }
+    static const wxString& GetDllExt() { return ms_dllext; }
 
     wxDynamicLibrary() : m_handle(0) { }
     wxDynamicLibrary(const wxString& libname, int flags = wxDL_DEFAULT)
@@ -298,7 +298,7 @@ protected:
 
 
     // platform specific shared lib suffix.
-    static const wxChar *ms_dllext;
+    static const wxString ms_dllext;
 
     // the handle to DLL or NULL
     wxDllType m_handle;
index ae754bc9c3d2f69eed0aa0a782ec44b7b6f4609d..ff9c14648d5397bd870cb8a6d9355f162eb0ddf5 100644 (file)
@@ -59,9 +59,9 @@ WX_DEFINE_USER_EXPORTED_OBJARRAY(wxDynamicLibraryDetailsArray)
 // ---------------------------------------------------------------------------
 
 #if defined(__WXPM__) || defined(__EMX__)
-    const wxChar *wxDynamicLibrary::ms_dllext = _T(".dll");
+    const wxString wxDynamicLibrary::ms_dllext(_T(".dll"));
 #elif defined(__WXMAC__) && !defined(__DARWIN__)
-    const wxChar *wxDynamicLibrary::ms_dllext = wxEmptyString;
+    const wxString wxDynamicLibrary::ms_dllext; // empty string
 #endif
 
 // for MSW/Unix it is defined in platform-specific file
index a0e6ab8e55f3e1f06742fefebb8e6b9903780eb7..7faff796a5f4c93818e04e4e3461576b97eb8265 100644 (file)
@@ -28,7 +28,7 @@
 #include "wx/msw/private.h"
 #include "wx/msw/debughlp.h"
 
-const wxChar *wxDynamicLibrary::ms_dllext = _T(".dll");
+const wxString wxDynamicLibrary::ms_dllext(_T(".dll"));
 
 // ----------------------------------------------------------------------------
 // private classes
index 97d20f98ee54c5415312ec60416253b872539d6a..2c9fec3b3ca8dcd3737021454043de9776e18c67 100644 (file)
 
 // standard shared libraries extensions for different Unix versions
 #if defined(__HPUX__)
-    const wxChar *wxDynamicLibrary::ms_dllext = _T(".sl");
+    const wxString wxDynamicLibrary::ms_dllext(".sl");
 #elif defined(__DARWIN__)
-    const wxChar *wxDynamicLibrary::ms_dllext = _T(".bundle");
+    const wxString wxDynamicLibrary::ms_dllext(".bundle");
 #else
-    const wxChar *wxDynamicLibrary::ms_dllext = _T(".so");
+    const wxString wxDynamicLibrary::ms_dllext(".so");
 #endif
 
 // ============================================================================