citra-emu
/
citra
Archived
1
0
Fork 0

citra_qt: prefer standard algorithms (#5995)

qt_multimedia_camera.cpp:
Prefer std::generate over ranged-for loop.
This commit is contained in:
tcoyvwac 2022-04-14 16:28:25 +02:00 committed by GitHub
parent 3df43f9505
commit ac7285c904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -124,9 +124,8 @@ std::unordered_map<std::string, std::shared_ptr<QtMultimediaCameraHandler>>
QtMultimediaCameraHandler::loaded; QtMultimediaCameraHandler::loaded;
void QtMultimediaCameraHandler::Init() { void QtMultimediaCameraHandler::Init() {
for (auto& handler : handlers) { std::generate(std::begin(handlers), std::end(handlers),
handler = std::make_shared<QtMultimediaCameraHandler>(); std::make_shared<QtMultimediaCameraHandler>);
}
} }
std::shared_ptr<QtMultimediaCameraHandler> QtMultimediaCameraHandler::GetHandler( std::shared_ptr<QtMultimediaCameraHandler> QtMultimediaCameraHandler::GetHandler(