Skip to content

Commit 0aeab56

Browse files
authored
[CI] Fix for building with Visual Studio 17.6 (#25759)
* Disable building Stl Modules * [FindMyMouse] Fix C26495 errors
1 parent b0e7904 commit 0aeab56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cpp.Build.props

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<ConformanceMode>false</ConformanceMode>
5454
<TreatWarningAsError>true</TreatWarningAsError>
5555
<LanguageStandard>stdcpplatest</LanguageStandard>
56+
<BuildStlModules>false</BuildStlModules>
5657
<AdditionalOptions>/await %(AdditionalOptions)</AdditionalOptions>
5758
<PreprocessorDefinitions>_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
5859
</ClCompile>

src/modules/MouseUtils/FindMyMouse/FindMyMouse.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct SuperSonar
5454
D* Shim() { return static_cast<D*>(this); }
5555
LRESULT BaseWndProc(UINT message, WPARAM wParam, LPARAM lParam) noexcept;
5656

57-
HWND m_hwnd;
57+
HWND m_hwnd{};
5858
POINT m_sonarPos = ptNowhere;
5959

6060
// Only consider double left control click if at least 100ms passed between the clicks, to avoid keyboards that might be sending rapid clicks.
@@ -118,7 +118,7 @@ struct SuperSonar
118118
ControlUp2,
119119
};
120120

121-
HWND m_hwndOwner;
121+
HWND m_hwndOwner{};
122122
SonarState m_sonarState = SonarState::Idle;
123123
POINT m_lastKeyPos{};
124124
ULONGLONG m_lastKeyTime{};

0 commit comments

Comments
 (0)