Skip to content

Commit

Permalink
Fix GCC compile error
Browse files Browse the repository at this point in the history
Add explicit type conversion
  • Loading branch information
utelle committed Feb 24, 2023
1 parent c83a72f commit 4f2be04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wxsqlite3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2684,7 +2684,7 @@ void wxSQLite3Database::Open(const wxString& fileName, const wxMemoryBuffer& key
wxCharBuffer strFileName = fileName.ToUTF8();
const char* localFileName = strFileName;
wxCharBuffer strVfs = vfs.ToUTF8();
const char* localVfs = (!vfs.IsEmpty()) ? strVfs : (const char* ) NULL;
const char* localVfs = (!vfs.IsEmpty()) ? (const char*) strVfs : (const char*) NULL;
sqlite3* db;

int rc = sqlite3_open_v2((const char*) localFileName, &db, flags, localVfs);
Expand Down Expand Up @@ -2747,7 +2747,7 @@ void wxSQLite3Database::Open(const wxString& fileName, const wxSQLite3Cipher& ci
wxCharBuffer strFileName = fileName.ToUTF8();
const char* localFileName = strFileName;
wxCharBuffer strVfs = vfs.ToUTF8();
const char* localVfs = (!vfs.IsEmpty()) ? strVfs : (const char*) NULL;
const char* localVfs = (!vfs.IsEmpty()) ? (const char*) strVfs : (const char*) NULL;
sqlite3* db;

int rc = sqlite3_open_v2((const char*) localFileName, &db, flags, localVfs);
Expand Down

0 comments on commit 4f2be04

Please sign in to comment.