From 4e388b7b6c0869b1f918d1d01b22afa235062ccf Mon Sep 17 00:00:00 2001 From: benstevens48 Date: Thu, 9 Jan 2025 10:50:23 +0000 Subject: [PATCH] fix code quality test warnings --- winrt/lib/drawing/CanvasDevice.cpp | 2 +- winrt/lib/pch.h | 4 ++-- winrt/test.internal/pch.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/winrt/lib/drawing/CanvasDevice.cpp b/winrt/lib/drawing/CanvasDevice.cpp index 0a28b8ede..0d3644fd3 100644 --- a/winrt/lib/drawing/CanvasDevice.cpp +++ b/winrt/lib/drawing/CanvasDevice.cpp @@ -1670,7 +1670,7 @@ namespace ABI { namespace Microsoft { namespace Graphics { namespace Canvas { // the way this variable/function is declared, the TraceLoggingWrite call here will only fire once // per process, even if LogCreateCanvasDevice() is called more than once. - static bool createCanvasDeviceLoggedOnce = []() + static bool createCanvasDeviceLoggedOnce = [] { TraceLoggingWrite( g_hTelemetryProvider, diff --git a/winrt/lib/pch.h b/winrt/lib/pch.h index f44d94ccb..877483c25 100644 --- a/winrt/lib/pch.h +++ b/winrt/lib/pch.h @@ -15,12 +15,12 @@ #endif #ifndef WIN2D_DLL_EXPORT -#define WIN2D_DLL_EXPORT // Mark public C APIs as being exported (whereas external consumers will import them) +#define WIN2D_DLL_EXPORT // Mark public C APIs as being exported (whereas external consumers will import them) #endif #if defined(_M_IX86) && defined(_MSC_VER) #ifndef ARCH_X86 -#define ARCH_X86 // Used to detect the x86 architecture so fixups for C exports can be added +#define ARCH_X86 // Used to detect the x86 architecture so fixups for C exports can be added #endif #endif diff --git a/winrt/test.internal/pch.h b/winrt/test.internal/pch.h index 5220adb6a..251b6b752 100644 --- a/winrt/test.internal/pch.h +++ b/winrt/test.internal/pch.h @@ -26,7 +26,7 @@ using namespace ABI::Microsoft::Graphics::Canvas::Effects; #if defined(_M_IX86) && defined(_MSC_VER) #ifndef ARCH_X86 -#define ARCH_X86 // Used to detect the x86 architecture so fixups for C exports can be added +#define ARCH_X86 // Used to detect the x86 architecture so fixups for C exports can be added #endif #endif