From 4f7a1f5b9499d5fbeff413a4914283c2bfe7c2d9 Mon Sep 17 00:00:00 2001 From: Matthew Pottage Date: Tue, 28 Oct 2014 16:50:02 +0000 Subject: fdo#75757: Remove inheritance from std::vector Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061 --- sax/qa/cppunit/test_converter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sax/qa') diff --git a/sax/qa/cppunit/test_converter.cxx b/sax/qa/cppunit/test_converter.cxx index 968292a54154..32b65f4e61b7 100644 --- a/sax/qa/cppunit/test_converter.cxx +++ b/sax/qa/cppunit/test_converter.cxx @@ -33,7 +33,7 @@ #include #include "sax/tools/converter.hxx" -#include "comphelper/sequenceasvector.hxx" +#include #include "sal/log.hxx" @@ -664,23 +664,23 @@ void doTestDecodeBase64(const uno::Sequence& aPass, char const*const p void ConverterTest::testBase64() { - comphelper::SequenceAsVector< sal_Int8 > tempSeq(4); + std::vector< sal_Int8 > tempSeq(4); for(sal_Int8 i = 0; i<4; ++i) tempSeq.push_back(i); - uno::Sequence< sal_Int8 > tempSequence = tempSeq.getAsConstList(); + uno::Sequence< sal_Int8 > tempSequence = comphelper::containerToSequence(tempSeq); doTestEncodeBase64("AAAAAAABAgM=", tempSequence); doTestDecodeBase64(tempSequence, "AAAAAAABAgM="); tempSeq[0] = sal_Int8(5); tempSeq[1] = sal_Int8(2); tempSeq[2] = sal_Int8(3); - tempSequence = tempSeq.getAsConstList(); + tempSequence = comphelper::containerToSequence(tempSeq); doTestEncodeBase64("BQIDAAABAgM=", tempSequence); doTestDecodeBase64(tempSequence, "BQIDAAABAgM="); tempSeq[0] = sal_Int8(sal_uInt8(200)); tempSeq[1] = sal_Int8(31); tempSeq[2] = sal_Int8(77); tempSeq[3] = sal_Int8(111); - tempSequence = tempSeq.getAsConstList(); + tempSequence = comphelper::containerToSequence(tempSeq); doTestEncodeBase64("yB9NbwABAgM=", tempSequence); doTestDecodeBase64(tempSequence, "yB9NbwABAgM="); } -- cgit