Skip to content

Commit

Permalink
Fix usage of function that was removed in origin, but missed in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosefield committed Sep 8, 2021
1 parent 91e4388 commit 5aa455d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/Remoting/Monarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation
Windows::Foundation::Collections::IVector<winrt::hstring> Monarch::GetAllWindowLayouts()
{
auto vec = winrt::single_threaded_vector<winrt::hstring>();
auto callback = [&](auto&& p, auto&& /*id*/) {
auto callback = [&](const auto& /*id*/, const auto& p) {
auto layout = p.GetWindowLayout();
vec.Append(layout);
};
Expand All @@ -906,7 +906,7 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation
TraceLoggingLevel(WINEVENT_LEVEL_VERBOSE),
TraceLoggingKeyword(TIL_KEYWORD_TRACE));
};
_forAllPeasantsIgnoringTheDead(callback, onError);
_forEachPeasant(callback, onError);

return vec;
}
Expand Down

0 comments on commit 5aa455d

Please sign in to comment.