Skip to content

Commit f5f6345

Browse files
committed
wil::to_vector
1 parent cef8e02 commit f5f6345

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cascadia/TerminalSettingsModel/GlobalAppSettings.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ winrt::com_ptr<GlobalAppSettings> GlobalAppSettings::Copy() const
9494
}
9595
if (_DisabledProfileSources)
9696
{
97-
globals->_DisabledProfileSources = winrt::single_threaded_vector<hstring>();
98-
for (const auto& src : *_DisabledProfileSources)
99-
{
100-
globals->_DisabledProfileSources->Append(src);
101-
}
97+
globals->_DisabledProfileSources = winrt::single_threaded_vector<hstring>(std::move(wil::to_vector(*globals->_DisabledProfileSources)));
10298
}
10399

104100
for (const auto& parent : _parents)

0 commit comments

Comments
 (0)