Proper clearing of WinRT factory cache in QWindowsTheme

I've checked the whole qtbase code base, this is the only
one that's left from the previous commit.

Amends commit ffb9dee1b0954e4d4f9e9791175609a80ecafc31

Task-number: QTBUG-103611
Change-Id: I76a9130654819d1336c27dac350f5ad56915ad81
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
(cherry picked from commit acf3f063efd2e1600b59c217189481e158b0eb89)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Yuhang Zhao 2022-11-16 10:51:45 +08:00 committed by Qt Cherry-pick Bot
parent 1327536264
commit ec5370458f

View File

@ -47,6 +47,7 @@
#if QT_CONFIG(cpp_winrt) && !defined(Q_CC_CLANG)
# include <winrt/base.h>
# include <QtCore/private/qfactorycacheregistration_p.h>
// Workaround for Windows SDK bug.
// See https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/issues/47
namespace winrt::impl