From 1a725ff0b42a6a97720f4663b9c5426fd5919079 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 6 Oct 2014 15:48:08 +0100 Subject: cast to size_t altogether Change-Id: I93cb374bd9743c45c4f3a98799a5f448dbb46fd8 --- sw/qa/core/uwriter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/qa') diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index a9f4fbdee62e..6b286542a344 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -964,8 +964,8 @@ static SwPosition getRandomPosition(SwDoc *pDoc, int /* nOffset */) { const SwPosition aPos(pDoc->GetNodes().GetEndOfContent()); - sal_uLong nNodes = aPos.nNode.GetNode().GetIndex() - aPos.nNode.GetNode().StartOfSectionIndex(); - sal_uLong n = comphelper::rng::uniform_int_distribution(static_cast(0), nNodes); + size_t nNodes = aPos.nNode.GetNode().GetIndex() - aPos.nNode.GetNode().StartOfSectionIndex(); + size_t n = comphelper::rng::uniform_int_distribution(static_cast(0), nNodes); SwPaM pam(aPos); for (sal_uLong i = 0; i < n; ++i) { -- cgit