From 862c051e9ea9ed8c4f4369f008072ab29bbadcd1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Jun 2021 21:57:22 +0200 Subject: [PATCH] Remove unnecessary calls to c_str() for wxLogError() arguments Just pass strings to wxLogError() directly. No real changes. --- src/common/regex.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/regex.cpp b/src/common/regex.cpp index c0cf525976..38089f9835 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -305,7 +305,7 @@ bool wxRegExImpl::Compile(const wxString& expr, int flags) if ( errorcode ) { wxLogError(_("Invalid regular expression '%s': %s"), - expr.c_str(), GetErrorMsg(errorcode, !conv).c_str()); + expr, GetErrorMsg(errorcode, !conv)); m_isCompiled = false; } @@ -426,7 +426,7 @@ bool wxRegExImpl::Matches(const wxRegChar *str, default: // an error occurred wxLogError(_("Failed to find match for regular expression: %s"), - GetErrorMsg(rc, !str).c_str()); + GetErrorMsg(rc, !str)); wxFALLTHROUGH; case REG_NOMATCH: @@ -474,7 +474,7 @@ int wxRegExImpl::Replace(wxString *text, if (!textstr) { wxLogError(_("Failed to find match for regular expression: %s"), - GetErrorMsg(0, true).c_str()); + GetErrorMsg(0, true)); return 0; } size_t textlen = strlen(textstr);