Give NULL explicit type to make interface recognizeable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,7 +91,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, float *value,
|
|||||||
bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
|
bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
|
||||||
if (succ)
|
if (succ)
|
||||||
{
|
{
|
||||||
*value = (float)wxStrtod(s, NULL);
|
*value = (float)wxStrtod(s, (wchar_t**) NULL);
|
||||||
delete[] s;
|
delete[] s;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -104,7 +104,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, long *value,
|
|||||||
bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
|
bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
|
||||||
if (succ)
|
if (succ)
|
||||||
{
|
{
|
||||||
*value = wxStrtol(s, NULL, 10);
|
*value = wxStrtol(s, (wchar_t**) NULL, 10);
|
||||||
delete[] s;
|
delete[] s;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -117,7 +117,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c
|
|||||||
bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
|
bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
|
||||||
if (succ)
|
if (succ)
|
||||||
{
|
{
|
||||||
*value = (int)wxStrtol(s, NULL, 10);
|
*value = (int)wxStrtol(s, (wchar_t**) NULL, 10);
|
||||||
delete[] s;
|
delete[] s;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user