]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed wxFopen() calls to use c_str
authorRobert Roebling <robert@roebling.de>
Sun, 20 Feb 2005 20:50:17 +0000 (20:50 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 20 Feb 2005 20:50:17 +0000 (20:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/db.cpp

index 746c65ce0b7915bf2dedecf1baa9ce6560be7008..2f19576485ff399148d0db3d47e994fb89914f62 100644 (file)
@@ -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;
         }