mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-22 10:07:37 +00:00
[Analyzers][CPP]Turn on warning 4457 (#22149)
This commit is contained in:
parent
e5f171c836
commit
e50cd85e9a
@ -42,7 +42,7 @@
|
|||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
<WarningLevel>Level4</WarningLevel>
|
<WarningLevel>Level4</WarningLevel>
|
||||||
<DisableSpecificWarnings>26800;28251;4389;4457;4701;6387;4458;4505;4515;4459;4702;6031;6248;26451;28182;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>26800;28251;4389;4701;6387;4458;4505;4515;4459;4702;6031;6248;26451;28182;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<DisableAnalyzeExternal >true</DisableAnalyzeExternal>
|
<DisableAnalyzeExternal >true</DisableAnalyzeExternal>
|
||||||
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
|
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
|
||||||
<ConformanceMode>false</ConformanceMode>
|
<ConformanceMode>false</ConformanceMode>
|
||||||
|
@ -324,7 +324,7 @@ std::pair<std::shared_ptr<WorkArea>, ZoneIndexSet> FancyZones::GetAppZoneHistory
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (const auto& [monitor, workArea] : workAreaMap)
|
for (const auto& [mon, workArea] : workAreaMap)
|
||||||
{
|
{
|
||||||
auto zoneIndexSet = workArea->GetWindowZoneIndexes(window);
|
auto zoneIndexSet = workArea->GetWindowZoneIndexes(window);
|
||||||
if (!zoneIndexSet.empty())
|
if (!zoneIndexSet.empty())
|
||||||
|
@ -129,8 +129,8 @@ namespace JsonUtils
|
|||||||
auto appHistoryArray = json.GetNamedArray(NonLocalizable::AppZoneHistoryIds::HistoryID);
|
auto appHistoryArray = json.GetNamedArray(NonLocalizable::AppZoneHistoryIds::HistoryID);
|
||||||
for (uint32_t i = 0; i < appHistoryArray.Size(); ++i)
|
for (uint32_t i = 0; i < appHistoryArray.Size(); ++i)
|
||||||
{
|
{
|
||||||
json::JsonObject json = appHistoryArray.GetObjectAt(i);
|
json::JsonObject json_hist = appHistoryArray.GetObjectAt(i);
|
||||||
if (auto data = ParseSingleAppZoneHistoryItem(json); data.has_value())
|
if (auto data = ParseSingleAppZoneHistoryItem(json_hist); data.has_value())
|
||||||
{
|
{
|
||||||
result.data.push_back(std::move(data.value()));
|
result.data.push_back(std::move(data.value()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user