From 5157a8a62caf63a72c6d27d35533481e1bf8d4bd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Apr 2022 21:03:13 +0100 Subject: [PATCH] Hide private StretchBltModeChanger class in unnamed namespace No real changes, just put this non-wx-prefixed class in an unnamed namespace to avoid any clashes with user-defined classes (which would be possible when using wx as a static library). --- src/msw/dc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index c950b2b90b..3a048895bf 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -404,6 +404,9 @@ private: wxDECLARE_NO_COPY_CLASS(wxBrushAttrsSetter); }; +namespace +{ + // this class sets the stretch blit mode to COLORONCOLOR during its lifetime class StretchBltModeChanger { @@ -434,6 +437,8 @@ private: wxDECLARE_NO_COPY_CLASS(StretchBltModeChanger); }; +} // anonymous namespace + // =========================================================================== // implementation // ===========================================================================