From 9cbc1c3253f1c7ac7507ec89ed879d157c809bb6 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Sat, 8 Oct 2011 22:24:21 +0400 Subject: no need to return size_t instead of sal_Int32 --- tools/inc/tools/multisel.hxx | 2 +- tools/source/memtools/multisel.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/inc/tools/multisel.hxx b/tools/inc/tools/multisel.hxx index 733682f9579f..6d3c3de7a5f6 100644 --- a/tools/inc/tools/multisel.hxx +++ b/tools/inc/tools/multisel.hxx @@ -162,7 +162,7 @@ public: sal_Int32 i_nLogicalOffset = -1 ); - size_t size() const { return size_t(mnCount); } + sal_Int32 size() const { return mnCount; } Iterator begin( const std::set< sal_Int32 >* i_pPossibleValues = NULL ) const; Iterator end( const std::set< sal_Int32 >* i_pPossibleValues = NULL ) const; diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index 395082ed96ed..bf504e5d978d 100644 --- a/tools/source/memtools/multisel.cxx +++ b/tools/source/memtools/multisel.cxx @@ -1168,7 +1168,7 @@ bool StringRangeEnumerator::getRangesFromString( const OUString& i_rPageRange, //Even if the input range wasn't completely valid, return what ranges could //be extracted from the input. - o_rPageVector.reserve( aEnum.size() ); + o_rPageVector.reserve( static_cast< size_t >( aEnum.size() ) ); for( StringRangeEnumerator::Iterator it = aEnum.begin( i_pPossibleValues ); it != aEnum.end( i_pPossibleValues ); ++it ) { -- cgit