wxFopen arg fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -251,7 +251,7 @@ bool wxResourceTable::ParseResourceFile(const wxString& filename)
|
|||||||
{
|
{
|
||||||
wxExprDatabase db;
|
wxExprDatabase db;
|
||||||
|
|
||||||
FILE *fd = wxFopen(filename.fn_str(), wxT("r"));
|
FILE *fd = wxFopen(filename, wxT("r"));
|
||||||
if (!fd)
|
if (!fd)
|
||||||
return false;
|
return false;
|
||||||
bool eof = false;
|
bool eof = false;
|
||||||
@@ -2831,7 +2831,7 @@ bool wxResourceParseIncludeFile(const wxString& f, wxResourceTable *table)
|
|||||||
if (!table)
|
if (!table)
|
||||||
table = wxDefaultResourceTable;
|
table = wxDefaultResourceTable;
|
||||||
|
|
||||||
FILE *fd = wxFopen(f.fn_str(), wxT("r"));
|
FILE *fd = wxFopen(f, wxT("r"));
|
||||||
if (!fd)
|
if (!fd)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@@ -1072,7 +1072,7 @@ bool wxExprDatabase::Read(const wxString& filename)
|
|||||||
{
|
{
|
||||||
noErrors = 0;
|
noErrors = 0;
|
||||||
|
|
||||||
FILE *f = wxFopen(filename.fn_str(), _T("r"));
|
FILE *f = wxFopen(filename, _T("r"));
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
thewxExprDatabase = this;
|
thewxExprDatabase = this;
|
||||||
@@ -1104,7 +1104,7 @@ bool wxExprDatabase::ReadFromString(const wxString& buffer)
|
|||||||
|
|
||||||
bool wxExprDatabase::Write(const wxString& fileName)
|
bool wxExprDatabase::Write(const wxString& fileName)
|
||||||
{
|
{
|
||||||
FILE *stream = wxFopen( fileName.fn_str(), _T("w+"));
|
FILE *stream = wxFopen( fileName, _T("w+"));
|
||||||
|
|
||||||
if (!stream)
|
if (!stream)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user