From 7d7ec3cfb93e2c82ad7f4ca64923412e94ec7153 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 2 Nov 2006 11:07:37 +0000 Subject: [PATCH] slightly better fix for missing c_str() in OnCellValueChanged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/grid/griddemo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 2102af618f..fff0004fb0 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -968,10 +968,8 @@ void GridFrame::OnCellValueChanged( wxGridEvent& ev ) int row = ev.GetRow(), col = ev.GetCol(); - wxString value = grid->GetCellValue(row, col); - wxLogMessage(_T("Value changed for cell at row %d, col %d: now \"%s\""), - row, col, (const wxChar*) value); + row, col, grid->GetCellValue(row, col).c_str()); ev.Skip(); } -- 2.47.2