mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 14:59:16 +08:00
[Analyzers][CPP]Turn on Warning 4239 (#21588)
* Turn on warning 4239 * changes from comments fix a 4100 that wasnt showing up before
This commit is contained in:
parent
59fd84c5ec
commit
b482188782
@ -35,14 +35,14 @@
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
<VcpkgEnabled>false</VcpkgEnabled>
|
||||
<ExternalIncludePath>$(MSBuildThisFileFullPath)\..\deps\;$(MSBuildThisFileFullPath)\..\packages\;$(ExternalIncludePath)</ExternalIncludePath>
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
<CodeAnalysisRuleSet>$(MsbuildThisFileDirectory)\CppRuleSet.ruleset</CodeAnalysisRuleSet>
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
<CodeAnalysisRuleSet>$(MsbuildThisFileDirectory)\CppRuleSet.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DisableSpecificWarnings>26800;28251;4239;4244;4245;4389;4456;4457;4701;6387;4458;4505;4515;4459;4702;6031;6248;26451;28182;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>26800;28251;4244;4245;4389;4456;4457;4701;6387;4458;4505;4515;4459;4702;6031;6248;26451;28182;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableAnalyzeExternal >true</DisableAnalyzeExternal>
|
||||
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
|
||||
<ConformanceMode>false</ConformanceMode>
|
||||
|
@ -305,12 +305,11 @@ void AppZoneHistory::AdjustWorkAreaIds(const std::vector<FancyZonesDataTypes::Mo
|
||||
{
|
||||
bool dirtyFlag = false;
|
||||
|
||||
for (auto iter = m_history.begin(); iter != m_history.end(); ++iter)
|
||||
for (auto& [app, data] : m_history)
|
||||
{
|
||||
auto& [app, data] = *iter;
|
||||
for (auto& dataIter = data.begin(); dataIter != data.end(); ++dataIter)
|
||||
for (auto& dataIter : data)
|
||||
{
|
||||
auto& dataMonitorId = dataIter->workAreaId.monitorId;
|
||||
auto& dataMonitorId = dataIter.workAreaId.monitorId;
|
||||
bool serialNumberNotSet = dataMonitorId.serialNumber.empty() && !dataMonitorId.deviceId.isDefault();
|
||||
bool monitorNumberNotSet = dataMonitorId.deviceId.number == 0;
|
||||
if (serialNumberNotSet || monitorNumberNotSet)
|
||||
|
Loading…
Reference in New Issue
Block a user