diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2020-10-03 11:08:58 +0200 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2020-10-03 12:34:33 +0200 |
commit | 476141321c1e8dfc552a41cd7576da886d109ed9 (patch) | |
tree | f736cf16525186681be06958f7e809a12fa55507 | |
parent | cd66e1d3a07723c0f97280b0b2ccecc5df59f83d (diff) |
[addons] AddonsDirectory: fix compiler warning: 'not1<std::__1::function<bool (const std::__1::shared_ptr<ADDON::IAddon> &)> >' is deprecated
-rw-r--r-- | xbmc/filesystem/AddonsDirectory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/filesystem/AddonsDirectory.cpp b/xbmc/filesystem/AddonsDirectory.cpp index 47448187ce..455b37d02f 100644 --- a/xbmc/filesystem/AddonsDirectory.cpp +++ b/xbmc/filesystem/AddonsDirectory.cpp @@ -441,7 +441,8 @@ static void UserInstalledAddons(const CURL& path, CFileItemList &items) VECADDONS addons; CServiceBroker::GetAddonMgr().GetInstalledAddons(addons); addons.erase(std::remove_if(addons.begin(), addons.end(), - std::not1(std::function<bool(const AddonPtr&)>(IsUserInstalled))), addons.end()); + [](const AddonPtr& addon) { return !IsUserInstalled(addon); })); + if (addons.empty()) return; |