diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-15 23:17:20 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-16 00:06:21 +0200 |
commit | 218be53fe00aebed43df0b041de609b30f99ce95 (patch) | |
tree | ad9098da3c0868c211065414fc7be6bbfff40cef /desktop/source/deployment/manager/dp_manager.cxx | |
parent | 5c8325325868753d2891556400c91651bce58402 (diff) |
tools: replace boost::ptr_vector with std::unordered_map
Change-Id: I530c5f95dda9aa80654e3a2a20a2e236221e7305
Diffstat (limited to 'desktop/source/deployment/manager/dp_manager.cxx')
-rw-r--r-- | desktop/source/deployment/manager/dp_manager.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx index 3392b545faff..d67f49610e87 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -971,9 +971,8 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_( INetContentTypeParameterList params; if (INetContentTypes::parse( data.mediaType, type, subType, ¶ms )) { - INetContentTypeParameter const * param = params.find( - OString("platform") ); - if (param != 0 && !platform_fits( param->m_sValue )) + auto const iter = params.find(OString("platform")); + if (iter != params.end() && !platform_fits(iter->second.m_sValue)) throw lang::IllegalArgumentException( getResourceString(RID_STR_NO_SUCH_PACKAGE) + id, static_cast<OWeakObject *>(this), |