From 00f6cfec51b20308362d24207406f934ccc59797 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Mar 2020 00:57:16 +0200 Subject: [PATCH] Fix wxUniv build with wxNO_RTTI ForceUpperFunctor must have a default ctor when wxNO_RTTI is on, i.e. when wxRTTI is used. Closes #18707. --- src/common/textentrycmn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index b9aa7640d6..731251ce7f 100644 --- a/src/common/textentrycmn.cpp +++ b/src/common/textentrycmn.cpp @@ -341,7 +341,9 @@ namespace // Poor man's lambda: helper for binding ConvertToUpperCase() to the event struct ForceUpperFunctor { - explicit ForceUpperFunctor(wxTextEntryBase* entry) + // This class must have default ctor in wxNO_RTTI case, so allow creating + // it with null entry even if this never actually happens in practice. + explicit ForceUpperFunctor(wxTextEntryBase* entry = NULL) : m_entry(entry) { }