Changed wxFopen() calls to use c_str
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ef00dc0917
commit
e04507df82
@ -3428,7 +3428,7 @@ bool wxDb::Catalog(const wxChar *userID, const wxString &fileName)
|
||||
wxChar typeName[30+1];
|
||||
SDWORD precision, length;
|
||||
|
||||
FILE *fp = wxFopen(fileName.fn_str(),wxT("wt"));
|
||||
FILE *fp = wxFopen(fileName.c_str,wxT("wt"));
|
||||
if (fp == NULL)
|
||||
return false;
|
||||
|
||||
@ -3769,7 +3769,7 @@ bool wxDb::SetSqlLogging(wxDbSqlLogState state, const wxString &filename, bool a
|
||||
{
|
||||
if (fpSqlLog == 0)
|
||||
{
|
||||
fpSqlLog = wxFopen(filename.fn_str(), (append ? wxT("at") : wxT("wt")));
|
||||
fpSqlLog = wxFopen(filename.c_str(), (append ? wxT("at") : wxT("wt")));
|
||||
if (fpSqlLog == NULL)
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user