diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-11-06 15:07:46 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-07 10:43:34 -0600 |
commit | bcb51cff22f385abe71555f8d7fdbec2697bf188 (patch) | |
tree | 4ca8f3c2b755a018f96d03ff43da2dc0ee0f6c69 /sw | |
parent | d877941fc7bb690d0c5b132a914920cf65f8abb2 (diff) |
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 <gerrit@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/pch/precompiled_msword.hxx | 1 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_sw.hxx | 1 | ||||
-rw-r--r-- | sw/source/core/access/accpara.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/access/textmarkuphelper.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/unocore/SwXTextDefaults.cxx | 3 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 3 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 3 |
7 files changed, 6 insertions, 18 deletions
diff --git a/sw/inc/pch/precompiled_msword.hxx b/sw/inc/pch/precompiled_msword.hxx index 1089e66b99b4..fbfa48288c76 100644 --- a/sw/inc/pch/precompiled_msword.hxx +++ b/sw/inc/pch/precompiled_msword.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> diff --git a/sw/inc/pch/precompiled_sw.hxx b/sw/inc/pch/precompiled_sw.hxx index cb79fff3672a..1285a3e2fdef 100644 --- a/sw/inc/pch/precompiled_sw.hxx +++ b/sw/inc/pch/precompiled_sw.hxx @@ -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> diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 33e782b6c80d..566f1ba2a215 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -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; - } } } diff --git a/sw/source/core/access/textmarkuphelper.cxx b/sw/source/core/access/textmarkuphelper.cxx index 0a8fa9b96f0a..989c6f68f8e8 100644 --- a/sw/source/core/access/textmarkuphelper.cxx +++ b/sw/source/core/access/textmarkuphelper.cxx @@ -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; } diff --git a/sw/source/core/unocore/SwXTextDefaults.cxx b/sw/source/core/unocore/SwXTextDefaults.cxx index 539cac40ef33..70712cc74072 100644 --- a/sw/source/core/unocore/SwXTextDefaults.cxx +++ b/sw/source/core/unocore/SwXTextDefaults.cxx @@ -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(); } diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index ec537447ab50..06b1b188eaba 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -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)); } } diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 6e28911334d5..380e342d2309 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -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); |