summaryrefslogtreecommitdiff
path: root/include/comphelper/propagg.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-31 10:23:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-31 14:53:25 +0200
commit6f26b6aeca827329dd8d55f344e509fcf7685172 (patch)
tree1b40fbeed53250e6e874786ab1da8b93dea58580 /include/comphelper/propagg.hxx
parent2a263cbdaf16c723a93af020ebc11b3e07210242 (diff)
Use more appropriate type for comphelper::internal::OPropertyAccessor::nPos
Change-Id: Ia7055dcc3832002fd10ae23a35fd08df5a98ae40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135177 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper/propagg.hxx')
-rw-r--r--include/comphelper/propagg.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/comphelper/propagg.hxx b/include/comphelper/propagg.hxx
index f7e47298b88b..949251892623 100644
--- a/include/comphelper/propagg.hxx
+++ b/include/comphelper/propagg.hxx
@@ -29,6 +29,7 @@
#include <comphelper/propstate.hxx>
#include <comphelper/comphelperdllapi.h>
+#include <cstddef>
#include <map>
#include <memory>
#include <vector>
@@ -49,10 +50,10 @@ namespace internal
struct OPropertyAccessor
{
sal_Int32 nOriginalHandle;
- sal_Int32 nPos;
+ std::size_t nPos;
bool bAggregate;
- OPropertyAccessor(sal_Int32 _nOriginalHandle, sal_Int32 _nPos, bool _bAggregate)
+ OPropertyAccessor(sal_Int32 _nOriginalHandle, std::size_t _nPos, bool _bAggregate)
:nOriginalHandle(_nOriginalHandle) ,nPos(_nPos) ,bAggregate(_bAggregate) { }
bool operator==(const OPropertyAccessor& rOb) const { return nPos == rOb.nPos; }