diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-10-08 22:24:21 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-10-08 22:24:21 +0400 |
commit | 9cbc1c3253f1c7ac7507ec89ed879d157c809bb6 (patch) | |
tree | 3f8784dc8208a76d016a23b9c9a16b1547fb988c /tools | |
parent | 6dcfa9d2aefc161ce61ea9b007d8997be3f31af9 (diff) |
no need to return size_t instead of sal_Int32
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/multisel.hxx | 2 | ||||
-rw-r--r-- | tools/source/memtools/multisel.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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 ) { |