summaryrefslogtreecommitdiff
path: root/test/source/sheet
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-03-09 23:05:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-03-13 19:01:37 +0000
commit758050caa06bd742dddea55fb29b0eec1b2309e4 (patch)
tree7591f5483eb3e159185215dec4660c505e947166 /test/source/sheet
parentfff2b5d06c24bb36a498bdb869158ee09c487111 (diff)
Use a more reasonable type for XDataPilotDescriptor::checkName nIndex parameter
Change-Id: If9e6760a6b23c63d03d337d6b111493684d67c85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148568 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'test/source/sheet')
-rw-r--r--test/source/sheet/xdatapilotdescriptor.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/source/sheet/xdatapilotdescriptor.cxx b/test/source/sheet/xdatapilotdescriptor.cxx
index a9cbcf5b125c..20392ff8ae4b 100644
--- a/test/source/sheet/xdatapilotdescriptor.cxx
+++ b/test/source/sheet/xdatapilotdescriptor.cxx
@@ -16,7 +16,6 @@
#include <cppunit/TestAssert.h>
-#include <o3tl/safeint.hxx>
#include <rtl/ustring.hxx>
using namespace css;
@@ -175,10 +174,10 @@ void XDataPilotDescriptor::testGetHiddenFields()
checkName( xIndex, 3 );
}
-void XDataPilotDescriptor::checkName( uno::Reference< container::XIndexAccess > const & xIndex, sal_Int32 nIndex )
+void XDataPilotDescriptor::checkName( uno::Reference< container::XIndexAccess > const & xIndex, std::size_t nIndex )
{
CPPUNIT_ASSERT(xIndex.is());
- CPPUNIT_ASSERT(maFieldNames.size() >= o3tl::make_unsigned(nIndex));
+ CPPUNIT_ASSERT(maFieldNames.size() >= nIndex);
for (sal_Int32 i = 0; i < xIndex->getCount(); ++i)
{