From bcb51cff22f385abe71555f8d7fdbec2697bf188 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Wed, 6 Nov 2013 15:07:46 -0200 Subject: fdo#63020: Replace ::comphelper::stl_begin()... And use some templates inside include/com/sun/star/uno/Sequence.hxx Change-Id: I48875fa1517751fc4cb0cf2b6c08b88975a29b47 Reviewed-on: https://gerrit.libreoffice.org/6599 Tested-by: LibreOffice gerrit bot Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- xmloff/source/core/RDFaExportHelper.cxx | 6 ++---- xmloff/source/text/txtimp.cxx | 3 +-- xmloff/source/text/txtparae.cxx | 5 ++--- 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'xmloff/source') diff --git a/xmloff/source/core/RDFaExportHelper.cxx b/xmloff/source/core/RDFaExportHelper.cxx index 3b3097b60033..c14d5ae466f5 100644 --- a/xmloff/source/core/RDFaExportHelper.cxx +++ b/xmloff/source/core/RDFaExportHelper.cxx @@ -24,7 +24,6 @@ #include #include -#include #include #include @@ -174,13 +173,12 @@ RDFaExportHelper::AddRDFa( OUStringBuffer property; ::comphelper::intersperse( - ::boost::make_transform_iterator( - ::comphelper::stl_begin(rStatements), + ::boost::make_transform_iterator(rStatements.begin(), ::boost::bind(&makeCURIE, &m_rExport, ::boost::bind(&rdf::Statement::Predicate, _1))), // argh, this must be the same type :( ::boost::make_transform_iterator( - ::comphelper::stl_end(rStatements), + rStatements.end(), ::boost::bind(&makeCURIE, &m_rExport, ::boost::bind(&rdf::Statement::Predicate, _1))), ::comphelper::OUStringBufferAppender(property), diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 245a7b2762a3..20349a6457bf 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -58,7 +58,6 @@ #include #include #include -#include using ::com::sun::star::ucb::XAnyCompare; @@ -869,7 +868,7 @@ namespace if(!vListEntries.empty()) { Sequence vListEntriesSeq(vListEntries.size()); - copy(vListEntries.begin(), vListEntries.end(), ::comphelper::stl_begin(vListEntriesSeq)); + copy(vListEntries.begin(), vListEntries.end(), vListEntriesSeq.begin()); vOutParams[OUString(ODF_FORMDROPDOWN_LISTENTRY)] = makeAny(vListEntriesSeq); } for(::std::map::const_iterator pCurrent = vOutParams.begin(); diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index bc9820944274..d8cb673efba9 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -98,7 +98,6 @@ #include "MultiPropertySetHelper.hxx" #include #include "XMLTextCharStyleNamesElementExport.hxx" -#include #include #include #include @@ -382,7 +381,7 @@ void FieldParamExporter::Export() const Type aSeqType = ::getCppuType((Sequence*)0); const Type aIntType = ::getCppuType((sal_Int32*)0); Sequence vParameters(m_xFieldParams->getElementNames()); - for(const OUString* pCurrent=::comphelper::stl_begin(vParameters); pCurrent!=::comphelper::stl_end(vParameters); ++pCurrent) + for(const OUString* pCurrent = vParameters.begin(); pCurrent != vParameters.end(); ++pCurrent) { const Any aValue = m_xFieldParams->getByName(*pCurrent); const Type aValueType = aValue.getValueType(); @@ -423,7 +422,7 @@ void FieldParamExporter::Export() { Sequence vValue; aValue >>= vValue; - for(OUString* pSeqCurrent = ::comphelper::stl_begin(vValue); pSeqCurrent != ::comphelper::stl_end(vValue); ++pSeqCurrent) + for(OUString* pSeqCurrent = vValue.begin(); pSeqCurrent != vValue.end(); ++pSeqCurrent) { ExportParameter(*pCurrent, *pSeqCurrent); } -- cgit