diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-20 18:53:02 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-20 18:53:05 +0200 |
commit | aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b (patch) | |
tree | ed23ffac1f34116af82c7036e0658959b35d21aa | |
parent | Merge pull request #6208 from lat9nq/boost-static (diff) | |
download | yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.tar yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.tar.gz yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.tar.bz2 yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.tar.lz yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.tar.xz yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.tar.zst yuzu-aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b.zip |
-rw-r--r-- | src/common/logging/backend.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index bc82905c0..f0bb392c6 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -56,10 +56,10 @@ public: void RemoveBackend(std::string_view backend_name) { std::lock_guard lock{writing_mutex}; - const auto it = - std::remove_if(backends.begin(), backends.end(), - [&backend_name](const auto& i) { return backend_name == i->GetName(); }); - backends.erase(it, backends.end()); + + std::erase_if(backends, [&backend_name](const auto& backend) { + return backend_name == backend->GetName(); + }); } const Filter& GetGlobalFilter() const { |