chore: fix clang-tidy warnings (#38079)
* chore: fix clang-tidy warnings * refactor: avoid need for NOLINTNEXTLINE
This commit is contained in:
parent
fe5cdd39d6
commit
08593fd2bd
20 changed files with 41 additions and 37 deletions
|
@ -243,8 +243,8 @@ void DesktopCapturer::UpdateSourcesList(DesktopMediaList* list) {
|
|||
std::vector<DesktopCapturer::Source> window_sources;
|
||||
window_sources.reserve(list->GetSourceCount());
|
||||
for (int i = 0; i < list->GetSourceCount(); i++) {
|
||||
window_sources.emplace_back(DesktopCapturer::Source{
|
||||
list->GetSource(i), std::string(), fetch_window_icons_});
|
||||
window_sources.emplace_back(list->GetSource(i), std::string(),
|
||||
fetch_window_icons_);
|
||||
}
|
||||
std::move(window_sources.begin(), window_sources.end(),
|
||||
std::back_inserter(captured_sources_));
|
||||
|
@ -256,8 +256,7 @@ void DesktopCapturer::UpdateSourcesList(DesktopMediaList* list) {
|
|||
std::vector<DesktopCapturer::Source> screen_sources;
|
||||
screen_sources.reserve(list->GetSourceCount());
|
||||
for (int i = 0; i < list->GetSourceCount(); i++) {
|
||||
screen_sources.emplace_back(
|
||||
DesktopCapturer::Source{list->GetSource(i), std::string()});
|
||||
screen_sources.emplace_back(list->GetSource(i), std::string());
|
||||
}
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
// Gather the same unique screen IDs used by the electron.screen API in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue