From ff215a4349083dc5e5f81e67e72d4681782830cd Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 11 May 2018 10:22:12 -0700 Subject: [PATCH] Use wxString::empty() instead of comparing to wxEmptyString --- src/generic/grideditors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grideditors.cpp b/src/generic/grideditors.cpp index 4cc103ca73..0fd043ad10 100644 --- a/src/generic/grideditors.cpp +++ b/src/generic/grideditors.cpp @@ -183,7 +183,7 @@ void wxGridCellEditorEvtHandler::OnChar(wxKeyEvent& event) int textWidth = 0; wxString value = m_grid->GetCellValue(row, col); - if ( wxEmptyString != value ) + if (!value.empty()) { // get width of cell CONTENTS (text) int y;