Lint cleanup.

This commit is contained in:
gibbed
2020-02-22 13:23:03 -06:00
committed by Rick Gibbed
parent 5aeeed72b9
commit a6e6f0f7bf
5 changed files with 82 additions and 56 deletions

View File

@@ -2,7 +2,7 @@
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. *
* Copyright 2020 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
@@ -158,7 +158,9 @@ bool EmulatorWindow::Initialize() {
ShowCommitID();
} break;
default: { handled = false; } break;
default: {
handled = false;
} break;
}
e->set_handled(handled);
});

View File

@@ -89,7 +89,8 @@ class Factory {
void Add(const std::string& name,
std::function<std::unique_ptr<T>(Args...)> instantiate) {
Add(name, []() { return true; }, instantiate);
constexpr auto always_available = []() { return true; };
Add(name, always_available, instantiate);
}
template <typename DT>