mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[Analyzers][CPP]Turn on warning 4457 (#22149)
This commit is contained in:
@@ -324,7 +324,7 @@ std::pair<std::shared_ptr<WorkArea>, ZoneIndexSet> FancyZones::GetAppZoneHistory
|
||||
}
|
||||
else
|
||||
{
|
||||
for (const auto& [monitor, workArea] : workAreaMap)
|
||||
for (const auto& [mon, workArea] : workAreaMap)
|
||||
{
|
||||
auto zoneIndexSet = workArea->GetWindowZoneIndexes(window);
|
||||
if (!zoneIndexSet.empty())
|
||||
|
||||
@@ -129,8 +129,8 @@ namespace JsonUtils
|
||||
auto appHistoryArray = json.GetNamedArray(NonLocalizable::AppZoneHistoryIds::HistoryID);
|
||||
for (uint32_t i = 0; i < appHistoryArray.Size(); ++i)
|
||||
{
|
||||
json::JsonObject json = appHistoryArray.GetObjectAt(i);
|
||||
if (auto data = ParseSingleAppZoneHistoryItem(json); data.has_value())
|
||||
json::JsonObject json_hist = appHistoryArray.GetObjectAt(i);
|
||||
if (auto data = ParseSingleAppZoneHistoryItem(json_hist); data.has_value())
|
||||
{
|
||||
result.data.push_back(std::move(data.value()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user