diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-19 09:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-19 09:33:29 +0200 |
commit | 2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch) | |
tree | 1b8fd3940910ffcd328e16a53e208c099f67ab21 /sd/source/ui/framework/configuration/Configuration.cxx | |
parent | f7b5f477bfd942e0a1d8880c372635000d724dd7 (diff) |
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'sd/source/ui/framework/configuration/Configuration.cxx')
-rw-r--r-- | sd/source/ui/framework/configuration/Configuration.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sd/source/ui/framework/configuration/Configuration.cxx b/sd/source/ui/framework/configuration/Configuration.cxx index e930f9dcc072..70b59105ca37 100644 --- a/sd/source/ui/framework/configuration/Configuration.cxx +++ b/sd/source/ui/framework/configuration/Configuration.cxx @@ -168,12 +168,7 @@ Sequence<Reference<XResourceId> > SAL_CALL Configuration::getResources ( aResources.push_back(*iResource); } - // Copy the resources from the vector into a new sequence. - Sequence<Reference<XResourceId> > aResult (aResources.size()); - for (size_t nIndex=0; nIndex<aResources.size(); ++nIndex) - aResult[nIndex] = aResources[nIndex]; - - return aResult; + return comphelper::containerToSequence(aResources); } sal_Bool SAL_CALL Configuration::hasResource (const Reference<XResourceId>& rxResourceId) |