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 /sw/source/core/unocore/unoflatpara.cxx | |
parent | f7b5f477bfd942e0a1d8880c372635000d724dd7 (diff) |
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'sw/source/core/unocore/unoflatpara.cxx')
-rw-r--r-- | sw/source/core/unocore/unoflatpara.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx index 8f9db59d9fdb..0688b392753a 100644 --- a/sw/source/core/unocore/unoflatpara.cxx +++ b/sw/source/core/unocore/unoflatpara.cxx @@ -47,6 +47,7 @@ #include <viewopt.hxx> #include <comphelper/servicehelper.hxx> #include <comphelper/propertysetinfo.hxx> +#include <comphelper/sequence.hxx> #include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/text/XTextRange.hpp> @@ -107,17 +108,11 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException, if (rPropertyName == "FieldPositions") { - uno::Sequence<sal_Int32> ret(GetConversionMap().getFieldPositions().size()); - std::copy(GetConversionMap().getFieldPositions().begin(), - GetConversionMap().getFieldPositions().end(), ret.begin()); - return uno::makeAny(ret); + return uno::makeAny( comphelper::containerToSequence( GetConversionMap().getFieldPositions() ) ); } else if (rPropertyName == "FootnotePositions") { - uno::Sequence<sal_Int32> ret(GetConversionMap().getFootnotePositions().size()); - std::copy(GetConversionMap().getFootnotePositions().begin(), - GetConversionMap().getFootnotePositions().end(), ret.begin()); - return uno::makeAny(ret); + return uno::makeAny( comphelper::containerToSequence( GetConversionMap().getFootnotePositions() ) ); } return uno::Any(); } |