summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-06-02 18:42:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-06-02 21:33:17 +0200
commitad67d0c99a12a2d58d26d84122501733c8aaa2f9 (patch)
tree65a8106d1a9388fa74681da159481774aa31f184 /include
parent9030bfb8401a73ff45a8df0f7ba05ae46332fafb (diff)
Use more appropriate type for LocationAccess::nOwnClassVectorIndex
Change-Id: Iba1709b60a27c331dcc6cf4e6f0966d94130a66c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135320 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/propertycontainerhelper.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/comphelper/propertycontainerhelper.hxx b/include/comphelper/propertycontainerhelper.hxx
index eb213e4541ec..73a0ce513289 100644
--- a/include/comphelper/propertycontainerhelper.hxx
+++ b/include/comphelper/propertycontainerhelper.hxx
@@ -22,6 +22,8 @@
#include <com/sun/star/uno/Type.hxx>
#include <com/sun/star/beans/Property.hpp>
+#include <cstddef>
+#include <limits>
#include <vector>
#include <comphelper/comphelperdllapi.h>
@@ -44,7 +46,7 @@ struct COMPHELPER_DLLPUBLIC PropertyDescription
union LocationAccess
{
void* pDerivedClassMember; // a pointer to a member of an object of a derived class
- sal_Int32 nOwnClassVectorIndex; // an index within m_aHoldProperties
+ std::size_t nOwnClassVectorIndex; // an index within m_aHoldProperties
};
css::beans::Property aProperty;
@@ -55,7 +57,7 @@ struct COMPHELPER_DLLPUBLIC PropertyDescription
:aProperty( OUString(), -1, css::uno::Type(), 0 )
,eLocated( LocationType::HoldMyself )
{
- aLocation.nOwnClassVectorIndex = -1;
+ aLocation.nOwnClassVectorIndex = std::numeric_limits<std::size_t>::max();
}
};