mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Use smart pointers to allocate Views
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user