impr: Use smart pointers to allocate Views

This commit is contained in:
WerWolv
2023-04-08 12:08:45 +02:00
parent dfca7e923c
commit 21f38974a8
6 changed files with 22 additions and 27 deletions

View File

@@ -211,7 +211,7 @@ namespace hex::plugin::builtin {
static bool isAnyViewOpen() {
const auto &views = ContentRegistry::Views::impl::getEntries();
return std::any_of(views.begin(), views.end(),
[](const std::pair<std::string, View*> &entry) {
[](const auto &entry) {
return entry.second->getWindowOpenState();
});
}