From ec5370458fc83eff80d01d215d0b98e1c3645656 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Wed, 16 Nov 2022 10:51:45 +0800 Subject: [PATCH] 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 (cherry picked from commit acf3f063efd2e1600b59c217189481e158b0eb89) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/windows/qwindowstheme.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/windows/qwindowstheme.cpp b/src/plugins/platforms/windows/qwindowstheme.cpp index 66d261174ce..55ccfcc8f42 100644 --- a/src/plugins/platforms/windows/qwindowstheme.cpp +++ b/src/plugins/platforms/windows/qwindowstheme.cpp @@ -47,6 +47,7 @@ #if QT_CONFIG(cpp_winrt) && !defined(Q_CC_CLANG) # include +# include // Workaround for Windows SDK bug. // See https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/issues/47 namespace winrt::impl