From a1bd57d1d8bc8ae2f17e688b7c8291fef3038dc1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Jul 2019 02:53:09 +0200 Subject: [PATCH] Make wxLog non-copyable It doesn't make sense to copy objects of this class and this wouldn't work correctly due to the presence of m_formatter field. See https://github.com/wxWidgets/wxWidgets/pull/1389 --- include/wx/log.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/log.h b/include/wx/log.h index c3d4343ce7..4bc3b587b8 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -690,6 +690,8 @@ private: #if WXWIN_COMPATIBILITY_2_8 static wxTraceMask ms_ulTraceMask; // controls wxLogTrace behaviour #endif // WXWIN_COMPATIBILITY_2_8 + + wxDECLARE_NO_COPY_CLASS(wxLog); }; // ----------------------------------------------------------------------------