fix mingw32 4.3 warning about passing literal string as non-const char*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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"),
|
||||
|
Reference in New Issue
Block a user