Kaydet (Commit) bcb51cff authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Stephan Bergmann

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/6599Tested-by: 's avatarLibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst d877941f
......@@ -31,7 +31,6 @@
#include <sal/types.h>
#include <comphelper/string.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/stl_types.hxx>
#include <com/sun/star/i18n/BreakIterator.hpp>
......@@ -248,9 +247,7 @@ OUString convertCommaSeparated(
{
OUStringBuffer buf;
::comphelper::intersperse(
::comphelper::stl_begin(i_rSeq), ::comphelper::stl_end(i_rSeq),
::comphelper::OUStringBufferAppender(buf),
OUString( ", " ));
i_rSeq.begin(), i_rSeq.end(), ::comphelper::OUStringBufferAppender(buf), OUString( ", " ));
return buf.makeStringAndClear();
}
......@@ -268,7 +265,7 @@ uno::Sequence< OUString >
}
} while (idx >= 0);
uno::Sequence< OUString > kws(vec.size());
std::copy(vec.begin(), vec.end(), stl_begin(kws));
std::copy(vec.begin(), vec.end(), kws.begin());
return kws;
}
......
......@@ -11,7 +11,6 @@
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <comphelper/stlunosequence.hxx>
#include <osl/mutex.hxx>
#include <tools/rcid.h>
#include <tools/resary.hxx>
......@@ -24,9 +23,6 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using ::comphelper::stl_begin;
using ::comphelper::stl_end;
namespace
{
static ::boost::shared_ptr<ResMgr> GetResMgr(Sequence<Any> const& rArgs)
......@@ -108,7 +104,7 @@ Any SAL_CALL ResourceIndexAccess::getByName(const OUString& aName)
{
const Sequence<OUString> aNames(getElementNames());
Reference<XIndexAccess> xResult;
switch(::std::find(stl_begin(aNames), stl_end(aNames), aName)-stl_begin(aNames))
switch(::std::find(aNames.begin(), aNames.end(), aName) - aNames.begin())
{
case 0:
xResult = Reference<XIndexAccess>(new ResourceStringIndexAccess(m_pResMgr));
......@@ -139,7 +135,7 @@ Sequence<OUString> SAL_CALL ResourceIndexAccess::getElementNames( )
throw (RuntimeException)
{
const Sequence<OUString> aNames(getElementNames());
return (::std::find(stl_begin(aNames), stl_end(aNames), aName) != stl_end(aNames));
return (::std::find(aNames.begin(), aNames.end(), aName) != aNames.end());
}
Any SAL_CALL ResourceStringIndexAccess::getByIndex(sal_Int32 nIdx)
......
......@@ -9,7 +9,6 @@
#include <algorithm>
#include <com/sun/star/i18n/XOrdinalSuffix.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <comphelper/stlunosequence.hxx>
#include <unotest/bootstrapfixturebase.hxx>
using namespace com::sun::star;
......@@ -53,15 +52,15 @@ void TestOrdinalSuffix::testFrench()
//1er
aSuffixes = m_xOrdinal->getOrdinalSuffix(1, aLocale);
pStart = comphelper::stl_begin(aSuffixes);
pEnd = comphelper::stl_end(aSuffixes);
pStart = aSuffixes.begin();
pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("er"));
CPPUNIT_ASSERT(pFind != pEnd);
//2e, 3e, etc.
aSuffixes = m_xOrdinal->getOrdinalSuffix(2, aLocale);
pStart = comphelper::stl_begin(aSuffixes);
pEnd = comphelper::stl_end(aSuffixes);
pStart = aSuffixes.begin();
pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("e"));
CPPUNIT_ASSERT(pFind != pEnd);
}
......@@ -74,22 +73,22 @@ void TestOrdinalSuffix::testEnglish()
//1st
aSuffixes = m_xOrdinal->getOrdinalSuffix(1, aLocale);
pStart = comphelper::stl_begin(aSuffixes);
pEnd = comphelper::stl_end(aSuffixes);
pStart = aSuffixes.begin();
pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("st"));
CPPUNIT_ASSERT(pFind != pEnd);
//2nd
aSuffixes = m_xOrdinal->getOrdinalSuffix(2, aLocale);
pStart = comphelper::stl_begin(aSuffixes);
pEnd = comphelper::stl_end(aSuffixes);
pStart = aSuffixes.begin();
pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("nd"));
CPPUNIT_ASSERT(pFind != pEnd);
//3rd
aSuffixes = m_xOrdinal->getOrdinalSuffix(3, aLocale);
pStart = comphelper::stl_begin(aSuffixes);
pEnd = comphelper::stl_end(aSuffixes);
pStart = aSuffixes.begin();
pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("rd"));
CPPUNIT_ASSERT(pFind != pEnd);
}
......
......@@ -163,6 +163,34 @@ public:
*/
inline E * SAL_CALL getArray();
/** This function allows to use Sequence in standard algorightms, like std::find
and others.
@since LibreOffice 4.2
*/
inline E * begin();
/** This function allows to use Sequence in standard algorightms, like std::find
and others.
@since LibreOffice 4.2
*/
inline E const * begin() const;
/** This function allows to use Sequence in standard algorightms, like std::find
and others.
@since LibreOffice 4.2
*/
inline E * end();
/** This function allows to use Sequence in standard algorightms, like std::find
and others.
@since LibreOffice 4.2
*/
inline E const * end() const;
/** Non-const index operator: Obtains a reference to element indexed at
given position.
The implementation does not check for array bounds!
......
......@@ -44,7 +44,6 @@ template< class E >
typelib_TypeDescriptionReference * Sequence< E >::s_pType = 0;
/// @endcond
//______________________________________________________________________________
template< class E >
inline Sequence< E >::Sequence() SAL_THROW(())
{
......@@ -55,7 +54,6 @@ inline Sequence< E >::Sequence() SAL_THROW(())
// no bad_alloc, because empty sequence is statically allocated in cppu
}
//______________________________________________________________________________
template< class E >
inline Sequence< E >::Sequence( const Sequence< E > & rSeq ) SAL_THROW(())
{
......@@ -63,7 +61,6 @@ inline Sequence< E >::Sequence( const Sequence< E > & rSeq ) SAL_THROW(())
_pSequence = rSeq._pSequence;
}
//______________________________________________________________________________
template< class E >
inline Sequence< E >::Sequence(
uno_Sequence * pSequence, __sal_NoAcquire ) SAL_THROW(())
......@@ -71,7 +68,6 @@ inline Sequence< E >::Sequence(
{
}
//______________________________________________________________________________
template< class E >
inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
{
......@@ -84,7 +80,6 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
throw ::std::bad_alloc();
}
//______________________________________________________________________________
template< class E >
inline Sequence< E >::Sequence( sal_Int32 len )
{
......@@ -97,7 +92,6 @@ inline Sequence< E >::Sequence( sal_Int32 len )
throw ::std::bad_alloc();
}
//______________________________________________________________________________
template< class E >
inline Sequence< E >::~Sequence() SAL_THROW(())
{
......@@ -106,7 +100,6 @@ inline Sequence< E >::~Sequence() SAL_THROW(())
this, rType.getTypeLibType(), (uno_ReleaseFunc)cpp_release );
}
//______________________________________________________________________________
template< class E >
inline Sequence< E > & Sequence< E >::operator = ( const Sequence< E > & rSeq ) SAL_THROW(())
{
......@@ -116,7 +109,6 @@ inline Sequence< E > & Sequence< E >::operator = ( const Sequence< E > & rSeq )
return *this;
}
//______________________________________________________________________________
template< class E >
inline sal_Bool Sequence< E >::operator == ( const Sequence< E > & rSeq ) const
SAL_THROW(())
......@@ -131,7 +123,6 @@ inline sal_Bool Sequence< E >::operator == ( const Sequence< E > & rSeq ) const
(uno_ReleaseFunc)cpp_release );
}
//______________________________________________________________________________
template< class E >
inline sal_Bool Sequence< E >::operator != ( const Sequence< E > & rSeq ) const
SAL_THROW(())
......@@ -139,7 +130,6 @@ inline sal_Bool Sequence< E >::operator != ( const Sequence< E > & rSeq ) const
return (! operator == ( rSeq ));
}
//______________________________________________________________________________
template< class E >
inline E * Sequence< E >::getArray()
{
......@@ -153,7 +143,16 @@ inline E * Sequence< E >::getArray()
return reinterpret_cast< E * >( _pSequence->elements );
}
//______________________________________________________________________________
template<class E> E * Sequence<E>::begin() { return getArray(); }
template<class E> E const * Sequence<E>::begin() const
{ return getConstArray(); }
template<class E> E * Sequence<E>::end() { return begin() + getLength(); }
template<class E> E const * Sequence<E>::end() const
{ return begin() + getLength(); }
template< class E >
inline E & Sequence< E >::operator [] ( sal_Int32 nIndex )
{
......@@ -161,7 +160,6 @@ inline E & Sequence< E >::operator [] ( sal_Int32 nIndex )
return getArray()[ nIndex ];
}
//______________________________________________________________________________
template< class E >
inline const E & Sequence< E >::operator [] ( sal_Int32 nIndex ) const
SAL_THROW(())
......@@ -170,7 +168,6 @@ inline const E & Sequence< E >::operator [] ( sal_Int32 nIndex ) const
return reinterpret_cast< const E * >( _pSequence->elements )[ nIndex ];
}
//______________________________________________________________________________
template< class E >
inline void Sequence< E >::realloc( sal_Int32 nSize )
{
......@@ -183,7 +180,6 @@ inline void Sequence< E >::realloc( sal_Int32 nSize )
throw ::std::bad_alloc();
}
//------------------------------------------------------------------------------
inline ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL toUnoSequence(
const ::rtl::ByteSequence & rByteSequence ) SAL_THROW(())
{
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_COMPHELPER_STLUNOSEQUENCE_HXX
#define INCLUDED_COMPHELPER_STLUNOSEQUENCE_HXX
#include <com/sun/star/uno/Sequence.hxx>
#include <sal/types.h>
namespace comphelper
{
/**
@short stl-container-like access to an existing ::com::sun::star::uno::Sequence
@descr These template functions allows using an existing
::com::sun::star::uno::Sequence using stl algorithms. They provides
standard-compliant mutable random access iterators. Because random access
iterators are the most generic iterators defined by the stl, any stl algorithm
can be applied to the Sequence (excluding algorithms requiring output
iterators).
<p>
Example: (creating a ::std::list from a ::com::sun::star::uno::Sequence)
<code>
::com::sun::star::uno::Sequence<sal_Int32> aSeq(10);
::std::list stl_list(stl_begin(aSeq), stl_end(aSeq));
</code>
<p>
Example: (sorting ::com::sun::star::uno::Sequence inplace)
<code>
::com::sun::star::uno::Sequence<sal_Int32> aSeq(10);
::std::sort(stl_begin(aSeq), stl_seq.end(aSeq));
</code>
<p>
Example: (counting occurrences of 4711 in a ::com::sun::star::uno::Sequence)
<code>
::com::sun::star::uno::Sequence<sal_Int32> aSeq(10);
sal_Int32 count = 0;
::std::count(stl_begin(aSeq), stl_end(aSeq), 4711, count);
</code>
<p>
@see http://www.sgi.com/tech/stl/Container.html
@see http://www.sgi.com/tech/stl/Sequence.html
@see http://www.sgi.com/tech/stl/RandomAccessIterator.html
*/
template <typename V>
V* stl_begin(::com::sun::star::uno::Sequence<V>& rSeq)
{ return rSeq.getArray(); }
template <typename V>
V* stl_end(::com::sun::star::uno::Sequence<V>& rSeq)
{ return rSeq.getArray() + rSeq.getLength(); }
template <typename V>
const V* stl_begin(const ::com::sun::star::uno::Sequence<V>& rSeq)
{ return rSeq.getConstArray(); }
template <typename V>
const V* stl_end(const ::com::sun::star::uno::Sequence<V>& rSeq)
{ return rSeq.getConstArray() + rSeq.getLength(); }
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -69,7 +69,6 @@
#include "comphelper/mediadescriptor.hxx"
#include "comphelper/processfactory.hxx"
#include "comphelper/sequenceasvector.hxx"
#include "comphelper/stlunosequence.hxx"
#include "comphelper/storagehelper.hxx"
#include "cppuhelper/basemutex.hxx"
#include "cppuhelper/compbase6.hxx"
......@@ -547,7 +546,6 @@
#include <comphelper/servicehelper.hxx>
#include <comphelper/solarmutex.hxx>
#include <comphelper/stillreadwriteinteraction.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/synchronousdispatch.hxx>
......
......@@ -66,7 +66,6 @@
#include "comphelper/storagehelper.hxx"
#include "comphelper/mediadescriptor.hxx"
#include "comphelper/sequenceasvector.hxx"
#include "comphelper/stlunosequence.hxx"
#include "sot/storage.hxx"
#include "sfx2/docfile.hxx"
#include "sax/tools/converter.hxx"
......@@ -2306,9 +2305,7 @@ void SfxDocumentMetaData::createUserDefined()
{
const css::uno::Sequence<css::uno::Reference<css::uno::XInterface> >
listeners(m_NotifyListeners.getElements());
for (css::uno::Reference< css::uno::XInterface > const * iter =
::comphelper::stl_begin(listeners);
iter != ::comphelper::stl_end(listeners); ++iter) {
for (css::uno::Reference< css::uno::XInterface > const * iter = listeners.begin(); iter != listeners.end(); ++iter) {
xMB->addModifyListener(
css::uno::Reference< css::util::XModifyListener >(*iter,
css::uno::UNO_QUERY));
......
......@@ -24,7 +24,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/types.hxx>
#include <comphelper/stlunosequence.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/diagnose_ex.h>
......
......@@ -9,14 +9,12 @@
#include <SyncDbusSessionHelper.hxx>
#include <comphelper/stlunosequence.hxx>
#include <gio/gio.h>
#include <vector>
#include <boost/shared_ptr.hpp>
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
using namespace ::comphelper;
using namespace ::std;
using namespace ::rtl;
......@@ -71,7 +69,7 @@ namespace shell { namespace sessioninstall
vector< OString > vPackagesOString;
vPackagesOString.reserve(vPackages.getLength());
boost::shared_ptr<GVariantBuilder> pBuilder(g_variant_builder_new(G_VARIANT_TYPE ("as")), GVariantBuilderDeleter());
for( const OUString* pPackage = stl_begin(vPackages); pPackage != stl_end(vPackages); ++pPackage)
for( const OUString* pPackage = vPackages.begin(); pPackage != vPackages.end(); ++pPackage)
{
vPackagesOString.push_back(OUStringToOString(*pPackage, RTL_TEXTENCODING_ASCII_US));
g_variant_builder_add(pBuilder.get(), "s", vPackagesOString.back().getStr());
......
......@@ -275,7 +275,6 @@
#include <comphelper/servicedecl.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/stl_types.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
......
......@@ -29,7 +29,6 @@
#include <com/sun/star/awt/grid/XGridColumnListener.hpp>
#include <com/sun/star/awt/grid/XSortableGridData.hpp>
#include <comphelper/stlunosequence.hxx>
#include <cppuhelper/weakref.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
......
......@@ -28,7 +28,6 @@
#include <com/sun/star/view/SelectionType.hpp>
#include <com/sun/star/awt/grid/XGridColumnListener.hpp>
#include <comphelper/stlunosequence.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
......
......@@ -97,7 +97,6 @@
#include <comphelper/mediadescriptor.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <config_version.h>
......
......@@ -456,7 +456,6 @@
#include <comphelper/sequenceasvector.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/stl_types.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
......
......@@ -68,7 +68,6 @@
// #i10825#
#include <parachangetrackinginfo.hxx>
#include <com/sun/star/text/TextMarkupType.hpp>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/servicehelper.hxx>
#include <algorithm>
......@@ -1389,13 +1388,9 @@ uno::Sequence< PropertyValue > SwAccessibleParagraph::getDefaultAttributes(
else
{
const OUString* aRequestedAttrIter =
::std::find( ::comphelper::stl_begin( aRequestedAttributes ),
::comphelper::stl_end( aRequestedAttributes ),
sMMToPixelRatio );
if ( aRequestedAttrIter != ::comphelper::stl_end( aRequestedAttributes ) )
{
::std::find( aRequestedAttributes.begin(), aRequestedAttributes.end(), sMMToPixelRatio );
if ( aRequestedAttrIter != aRequestedAttributes.end() )
bProvideMMToPixelRatio = true;
}
}
}
......
......@@ -22,7 +22,6 @@
#include <vector>
#include <algorithm>
#include <comphelper/stlunosequence.hxx>
#include <com/sun/star/text/TextMarkupType.hpp>
#include <com/sun/star/accessibility/TextSegment.hpp>
......@@ -207,8 +206,7 @@ sal_Int32 SwTextMarkupHelper::getTextMarkupCount( const sal_Int32 nTextMarkupTyp
uno::Sequence< ::com::sun::star::accessibility::TextSegment > aTextMarkups(
aTmpTextMarkups.size() );
::std::copy( aTmpTextMarkups.begin(), aTmpTextMarkups.end(),
::comphelper::stl_begin( aTextMarkups ) );
::std::copy( aTmpTextMarkups.begin(), aTmpTextMarkups.end(), aTextMarkups.begin() );
return aTextMarkups;
}
......
......@@ -22,7 +22,6 @@
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/stlunosequence.hxx>
#include <SwXTextDefaults.hxx>
#include <SwStyleNameMapper.hxx>
......@@ -251,7 +250,7 @@ sal_Bool SAL_CALL SwXTextDefaults::supportsService( const OUString& rServiceName
throw (RuntimeException)
{
uno::Sequence< OUString > aSeq(getSupportedServiceNames());
return std::find(comphelper::stl_begin(aSeq), comphelper::stl_end(aSeq), rServiceName) != comphelper::stl_end(aSeq);
return std::find(aSeq.begin(), aSeq.end(), rServiceName) != aSeq.end();
}
......
......@@ -85,7 +85,6 @@
#include <fmtline.hxx>
#include <fmtfsize.hxx>
#include <comphelper/extract.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/string.hxx>
#include <doctok/sprmids.hxx>
......@@ -3673,7 +3672,7 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark )
{
uno::Sequence< OUString > vListEntries;
pListEntries->second >>= vListEntries;
copy(::comphelper::stl_begin(vListEntries), ::comphelper::stl_end(vListEntries), back_inserter(aListItems));
copy(vListEntries.begin(), vListEntries.end(), back_inserter(aListItems));
}
}
......
......@@ -46,7 +46,6 @@
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <comphelper/extract.hxx>
#include <comphelper/stlunosequence.hxx>
#include <com/sun/star/beans/XPropertyContainer.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
......@@ -287,7 +286,7 @@ eF_ResT SwWW8ImplReader::Read_F_FormListBox( WW8FieldDesc* pF, OUString& rStr)
if ( pFieldmark != NULL )
{
uno::Sequence< OUString > vListEntries(aFormula.maListEntries.size());
::std::copy(aFormula.maListEntries.begin(), aFormula.maListEntries.end(), ::comphelper::stl_begin(vListEntries));
::std::copy(aFormula.maListEntries.begin(), aFormula.maListEntries.end(), vListEntries.begin());
(*pFieldmark->GetParameters())[ODF_FORMDROPDOWN_LISTENTRY] = uno::makeAny(vListEntries);
sal_Int32 nIndex = aFormula.fDropdownIndex < aFormula.maListEntries.size() ? aFormula.fDropdownIndex : 0;
(*pFieldmark->GetParameters())[ODF_FORMDROPDOWN_RESULT] = uno::makeAny(nIndex);
......
......@@ -20,7 +20,6 @@
#include "defaultgriddatamodel.hxx"
#include <comphelper/stlunosequence.hxx>
#include <comphelper/componentguard.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <toolkit/helper/servicenames.hxx>
......@@ -46,9 +45,6 @@ namespace toolkit
using ::com::sun::star::uno::Exception;
using ::com::sun::star::util::XCloneable;
using ::comphelper::stl_begin;
using ::comphelper::stl_end;
//==================================================================================================================
//= DefaultGridDataModel
//==================================================================================================================
......@@ -190,7 +186,7 @@ namespace toolkit
// create new data row
RowData newRow( i_assumedColCount > 0 ? i_assumedColCount : i_rowData.getLength() );
RowData::iterator cellData = newRow.begin();
for ( const Any* pData = stl_begin( i_rowData ); pData != stl_end( i_rowData ); ++pData, ++cellData )
for ( const Any* pData = i_rowData.begin(); pData != i_rowData.end(); ++pData, ++cellData )
cellData->first = *pData;
// insert data row
......@@ -349,8 +345,8 @@ namespace toolkit
rDataRow[ columnIndex ].first = i_values[ col ];
}
sal_Int32 const firstAffectedColumn = *::std::min_element( stl_begin( i_columnIndexes ), stl_end( i_columnIndexes ) );
sal_Int32 const lastAffectedColumn = *::std::max_element( stl_begin( i_columnIndexes ), stl_end( i_columnIndexes ) );
sal_Int32 const firstAffectedColumn = *::std::min_element( i_columnIndexes.begin(), i_columnIndexes.end() );
sal_Int32 const lastAffectedColumn = *::std::max_element( i_columnIndexes.begin(), i_columnIndexes.end() );
broadcast(
GridDataEvent( *this, firstAffectedColumn, lastAffectedColumn, i_rowIndex, i_rowIndex ),
&XGridDataListener::dataChanged,
......
......@@ -56,7 +56,6 @@
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/sequenceasvector.hxx>
#include <comphelper/makesequence.hxx>
#include <comphelper/xmltools.hxx>
......@@ -1493,8 +1492,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
} else {
m_RDFaXHTMLContentSet.insert(sXmlId);
}
::std::for_each(::comphelper::stl_begin(i_rPredicates),
::comphelper::stl_end(i_rPredicates),
::std::for_each(i_rPredicates.begin(), i_rPredicates.end(),
::boost::bind( &librdf_Repository::addStatementGraph,
this, i_xSubject, _1, xContent, xXmlId, true));
}
......
......@@ -156,7 +156,6 @@
#include <comphelper/embeddedobjectcontainer.hxx>
#include <comphelper/mediadescriptor.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
......
......@@ -67,7 +67,6 @@
#include <map>
#include <comphelper/stlunosequence.hxx>
#include <vcl/svapp.hxx>
#include <vcl/outdev.hxx>
#include <officecfg/Office/Common.hxx>
......@@ -88,7 +87,7 @@ void lcl_handleDropdownField( const uno::Reference< beans::XPropertySet >& rxFie
const FFDataHandler::DropDownEntries_t& rEntries = pFFDataHandler->getDropDownEntries();
uno::Sequence< OUString > sItems( rEntries.size() );
::std::copy( rEntries.begin(), rEntries.end(), ::comphelper::stl_begin(sItems));
::std::copy( rEntries.begin(), rEntries.end(), sItems.begin());
if ( sItems.getLength() )
rxFieldProps->setPropertyValue( "Items", uno::makeAny( sItems ) );
......
......@@ -37,7 +37,6 @@
#include "FormControlHelper.hxx"
#include <xmloff/odffields.hxx>
#include <comphelper/stlunosequence.hxx>
namespace writerfilter {
namespace dmapper {
......@@ -237,7 +236,7 @@ bool FormControlHelper::processField(uno::Reference<text::XFormField> xFormField
xFormField->setFieldType(ODF_FORMDROPDOWN);
uno::Sequence< OUString > sItems;
sItems.realloc( m_pFFData->getDropDownEntries().size() );
::std::copy( m_pFFData->getDropDownEntries().begin(), m_pFFData->getDropDownEntries().end(), ::comphelper::stl_begin(sItems));
::std::copy( m_pFFData->getDropDownEntries().begin(), m_pFFData->getDropDownEntries().end(), sItems.begin());
if ( sItems.getLength() )
{
if ( xNameCont->hasByName(ODF_FORMDROPDOWN_LISTENTRY) )
......
......@@ -497,7 +497,6 @@
#include <comphelper/sequenceasvector.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/stl_types.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
......
......@@ -24,7 +24,6 @@
#include <xmloff/xmlexp.hxx>
#include <xmloff/xmltoken.hxx>
#include <comphelper/stlunosequence.hxx>
#include <comphelper/stl_types.hxx>
#include <comphelper/processfactory.hxx>
......@@ -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),
......
......@@ -58,7 +58,6 @@
#include <com/sun/star/beans/XPropertyState.hpp>
#include <txtlists.hxx>
#include <xmloff/odffields.hxx>
#include <comphelper/stlunosequence.hxx>
using ::com::sun::star::ucb::XAnyCompare;
......@@ -869,7 +868,7 @@ namespace