diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-18 14:10:21 +0900 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-05-26 10:39:20 +0200 |
commit | b4848def4684ad277af23a10d73b4b5c9cb201fb (patch) | |
tree | 70abe9d2aa1df32ebad2c25a9ac0073855af4e55 /desktop/source/deployment/manager | |
parent | 6a4a55d5f48e52dd4a5094028d729ac4cc9d766e (diff) |
desktop: simplify code by std::none_of
Change-Id: Ie69927f3a1e0a8049ea7e15f949e17d5b9f15fce
Diffstat (limited to 'desktop/source/deployment/manager')
-rw-r--r-- | desktop/source/deployment/manager/dp_manager.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx index 3ddc5f83f757..291206e2f38f 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -62,6 +62,7 @@ #include "dp_descriptioninfoset.hxx" #include "dp_commandenvironments.hxx" #include "dp_properties.hxx" +#include <algorithm> using namespace ::dp_misc; using namespace ::com::sun::star; @@ -214,8 +215,7 @@ void PackageManagerImpl::initActivationLayer( { OUString const & tempEntry = tempEntries[ pos ]; const MatchTempDir match( tempEntry ); - if (::std::find_if( id2temp.begin(), id2temp.end(), match ) == - id2temp.end()) + if (::std::none_of( id2temp.begin(), id2temp.end(), match )) { const OUString url( makeURL(m_activePackages_expanded, tempEntry ) ); @@ -1336,8 +1336,7 @@ bool PackageManagerImpl::synchronizeAddedExtensions( //installed the extension it was already checked if there is one with the //same identifier. const MatchTempDir match(titleEncoded); - if (::std::find_if( id2temp.begin(), id2temp.end(), match ) == - id2temp.end()) + if (::std::none_of( id2temp.begin(), id2temp.end(), match )) { // The folder was not found in the data base, so it must be |