diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-07-15 20:41:18 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-07-15 22:28:42 -0500 |
commit | ec243f43411290bb7f56176e29cb92929dab2953 (patch) | |
tree | 78d1e3d4b0e86b1246f035ca60f94b29e5254f84 /desktop | |
parent | 578969c51cb7b012fb522d4296c8069a611de29d (diff) |
Revert "tools: replace boost::ptr_vector with std::unordered_map"
This reverts commit 218be53fe00aebed43df0b041de609b30f99ce95.
MacOSX breaker
Diffstat (limited to 'desktop')
3 files changed, 19 insertions, 19 deletions
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx index d67f49610e87..3392b545faff 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -971,8 +971,9 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_( INetContentTypeParameterList params; if (INetContentTypes::parse( data.mediaType, type, subType, ¶ms )) { - auto const iter = params.find(OString("platform")); - if (iter != params.end() && !platform_fits(iter->second.m_sValue)) + INetContentTypeParameter const * param = params.find( + OString("platform") ); + if (param != 0 && !platform_fits( param->m_sValue )) throw lang::IllegalArgumentException( getResourceString(RID_STR_NO_SUCH_PACKAGE) + id, static_cast<OWeakObject *>(this), diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index 9b2a2a73179c..e17961f0bb9b 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -670,21 +670,21 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( { // xxx todo: probe and evaluate component xml description - auto const iter = params.find(OString("platform")); - bool bPlatformFits(iter == params.end()); + INetContentTypeParameter const * param = params.find(OString("platform")); + bool bPlatformFits(param == 0); OUString aPlatform; if (!bPlatformFits) // platform is specified, we have to check { - aPlatform = iter->second.m_sValue; + aPlatform = param->m_sValue; bPlatformFits = platform_fits(aPlatform); } // If the package is being removed, do not care whether // platform fits. We won't be using it anyway. if (bPlatformFits || bRemoved) { - auto const iterType = params.find(OString("type")); - if (iterType != params.end()) + param = params.find(OString("type")); + if (param != 0) { - OUString const & value = iterType->second.m_sValue; + OUString const & value = param->m_sValue; if (value.equalsIgnoreAsciiCase("native")) { if (bPlatformFits) return new BackendImpl::ComponentPackageImpl( @@ -713,8 +713,8 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( } else if (subType.equalsIgnoreAsciiCase("vnd.sun.star.uno-components")) { - auto const iter = params.find(OString("platform")); - if (iter == params.end() || platform_fits(iter->second.m_sValue)) { + INetContentTypeParameter const * param = params.find(OString("platform")); + if (param == 0 || platform_fits( param->m_sValue )) { return new BackendImpl::ComponentsPackageImpl( this, url, name, m_xComponentsTypeInfo, bRemoved, identifier); @@ -722,9 +722,9 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( } else if (subType.equalsIgnoreAsciiCase( "vnd.sun.star.uno-typelibrary")) { - auto const iter = params.find(OString("type")); - if (iter != params.end()) { - OUString const & value = iter->second.m_sValue; + INetContentTypeParameter const * param = params.find(OString("type")); + if (param != 0) { + OUString const & value = param->m_sValue; if (value.equalsIgnoreAsciiCase("RDB")) { return new BackendImpl::TypelibraryPackageImpl( diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx index 2ce790d1e50d..db08cb9033e9 100644 --- a/desktop/source/deployment/registry/package/dp_package.cxx +++ b/desktop/source/deployment/registry/package/dp_package.cxx @@ -1473,8 +1473,8 @@ void BackendImpl::PackageImpl::scanBundle( if (! INetContentTypes::parse( mediaType, type, subType, ¶ms )) continue; - auto const iter = params.find("platform"); - if (iter != params.end() && !platform_fits(iter->second.m_sValue)) + INetContentTypeParameter const * param = params.find("platform"); + if (param != 0 && !platform_fits( param->m_sValue )) continue; const OUString url( makeURL( packageRootURL, fullPath ) ); @@ -1483,15 +1483,14 @@ void BackendImpl::PackageImpl::scanBundle( subType.equalsIgnoreAsciiCase( "vnd.sun.star.package-bundle-description")) { // check locale: - auto const iterLocale = params.find("locale"); - if (iterLocale == params.end()) - { + param = params.find("locale"); + if (param == 0) { if (descrFile.isEmpty()) descrFile = url; } else { // match best locale: - LanguageTag descrTag(iter->second.m_sValue); + LanguageTag descrTag( param->m_sValue); if (officeLocale.getLanguage() == descrTag.getLanguage()) { size_t nPenalty = nPenaltyMax; |