diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-09 17:08:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-09 17:08:14 +0100 |
commit | 82e92bb15d26fff2d07736e2a6193cac1915b44d (patch) | |
tree | 7907e78e58fe067832df8deac73fa53758c360dc /svl | |
parent | ff8f6629287d0d1bdbcf4f8ed16cb8d077d08c7a (diff) |
Clean up uses of integer types
Change-Id: I1155dfe3e2bcfe2c15c101c7373fcc9e161aa366
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/aeitem.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx index b10b36d0524b..fdbca831c064 100644 --- a/svl/source/items/aeitem.cxx +++ b/svl/source/items/aeitem.cxx @@ -20,6 +20,7 @@ #include <rtl/ustring.hxx> #include <svl/aeitem.hxx> +#include <cstddef> #include <vector> SfxPoolItem* SfxAllEnumItem::CreateDefault() { return new SfxAllEnumItem; } @@ -117,13 +118,13 @@ SfxPoolItem* SfxAllEnumItem::Create( SvStream & rStream, sal_uInt16 ) const * In contrast to @see GetPosByValue(sal_uInt16) const * this internal method returns the position the value would be for non-present values. */ -sal_uInt16 SfxAllEnumItem::GetPosByValue_( sal_uInt16 nVal ) const +std::size_t SfxAllEnumItem::GetPosByValue_( sal_uInt16 nVal ) const { if ( !pValues ) return 0; //FIXME: Optimisation: use binary search or SortArray - sal_uInt16 nPos; + std::size_t nPos; for ( nPos = 0; nPos < pValues->size(); ++nPos ) if ( (*pValues)[nPos].nValue >= nVal ) return nPos; |