From 24e2b35da2f1da5fd9eeabaf1fae35ee0caae2e3 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Mon, 5 Feb 2001 23:26:46 +0000 Subject: [PATCH] Added two more lines of c_str() calls for GCC compilation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/db/dbtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 06dc1c7b12..532b4bbf20 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -549,7 +549,7 @@ bool Ccontact::CreateIndexes(void) */ bool Ccontact::FetchByName(const wxString &name) { - whereStr.Printf(wxT("NAME = '%s'"),name); + whereStr.Printf(wxT("NAME = '%s'"),name.c_str()); SetWhereClause(whereStr.c_str()); SetOrderByClause(wxT("")); @@ -1027,7 +1027,7 @@ bool CeditorDlg::Initialize() if (Contact->GetDb()->Dbms() != dbmsPOSTGRES && Contact->GetDb()->Dbms() != dbmsMY_SQL) { - Contact->whereStr.Printf(wxT("NAME = (SELECT MIN(NAME) FROM %s)"),Contact->GetTableName()); + Contact->whereStr.Printf(wxT("NAME = (SELECT MIN(NAME) FROM %s)"),Contact->GetTableName().c_str()); // NOTE: (const wxChar*) returns a pointer which may not be valid later, so this is short term use only Contact->SetWhereClause(Contact->whereStr); } -- 2.45.2