]> git.saurik.com Git - wxWidgets.git/commitdiff
fix mingw32 4.3 warning about passing literal string as non-const char*
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Aug 2008 15:01:31 +0000 (15:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Aug 2008 15:01:31 +0000 (15:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dlmsw.cpp

index e517bcc3657352bd2db6fd066217d0b7d33a3068..ac4f88b1b994b570f176c41d59f179068db79c8c 100644 (file)
@@ -205,7 +205,10 @@ wxString wxVersionDLL::GetFileVersion(const wxString& filename) const
             {
                 void *pVer;
                 UINT sizeInfo;
-                if ( m_pfnVerQueryValue(buf.data(), _T("\\"), &pVer, &sizeInfo) )
+                if ( m_pfnVerQueryValue(buf.data(),
+                                        const_cast<wxChar *>(_T("\\")),
+                                        &pVer,
+                                        &sizeInfo) )
                 {
                     VS_FIXEDFILEINFO *info = (VS_FIXEDFILEINFO *)pVer;
                     ver.Printf(_T("%d.%d.%d.%d"),