diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-27 20:57:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-28 07:57:50 +0100 |
commit | 371b84dcb653f241d40265fba9f0d00f7c7e8150 (patch) | |
tree | 082d13c14548f069d5b28994478916e897949770 /tools/source/memtools | |
parent | 1977138acba04a7b91d73a3041606b2387e72e70 (diff) |
std::set->o3tl::sorted_vector in MultiSelection
Change-Id: I88a77f4b07e5aaccc42e6fb6e5bd0366f57381a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104899
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/source/memtools')
-rw-r--r-- | tools/source/memtools/multisel.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index 7a8df48d0049..4f915da258a4 100644 --- a/tools/source/memtools/multisel.cxx +++ b/tools/source/memtools/multisel.cxx @@ -486,7 +486,7 @@ StringRangeEnumerator::StringRangeEnumerator( const OUString& i_rInput, mbValidInput = setRange( i_rInput ); } -bool StringRangeEnumerator::checkValue( sal_Int32 i_nValue, const std::set< sal_Int32 >* i_pPossibleValues ) const +bool StringRangeEnumerator::checkValue( sal_Int32 i_nValue, const o3tl::sorted_vector< sal_Int32 >* i_pPossibleValues ) const { if( i_nValue < 0 || i_nValue < mnMin || i_nValue > mnMax ) return false; @@ -626,7 +626,7 @@ bool StringRangeEnumerator::setRange( const OUString& i_rNewRange ) return true; } -bool StringRangeEnumerator::hasValue( sal_Int32 i_nValue, const std::set< sal_Int32 >* i_pPossibleValues ) const +bool StringRangeEnumerator::hasValue( sal_Int32 i_nValue, const o3tl::sorted_vector< sal_Int32 >* i_pPossibleValues ) const { if( i_pPossibleValues && i_pPossibleValues->find( i_nValue ) == i_pPossibleValues->end() ) return false; @@ -696,7 +696,7 @@ bool StringRangeEnumerator::Iterator::operator==( const Iterator& i_rCompare ) c return i_rCompare.pEnumerator == pEnumerator && i_rCompare.nRangeIndex == nRangeIndex && i_rCompare.nCurrent == nCurrent; } -StringRangeEnumerator::Iterator StringRangeEnumerator::begin( const std::set< sal_Int32 >* i_pPossibleValues ) const +StringRangeEnumerator::Iterator StringRangeEnumerator::begin( const o3tl::sorted_vector< sal_Int32 >* i_pPossibleValues ) const { StringRangeEnumerator::Iterator it( this, i_pPossibleValues, @@ -707,7 +707,7 @@ StringRangeEnumerator::Iterator StringRangeEnumerator::begin( const std::set< sa return it; } -StringRangeEnumerator::Iterator StringRangeEnumerator::end( const std::set< sal_Int32 >* i_pPossibleValues ) const +StringRangeEnumerator::Iterator StringRangeEnumerator::end( const o3tl::sorted_vector< sal_Int32 >* i_pPossibleValues ) const { return StringRangeEnumerator::Iterator( this, i_pPossibleValues, -1, -1 ); } @@ -717,7 +717,7 @@ bool StringRangeEnumerator::getRangesFromString( const OUString& i_rPageRange, sal_Int32 i_nMinNumber, sal_Int32 i_nMaxNumber, sal_Int32 i_nLogicalOffset, - std::set< sal_Int32 > const * i_pPossibleValues + o3tl::sorted_vector< sal_Int32 > const * i_pPossibleValues ) { o_rPageVector.clear(); |