summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-06 15:48:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-06 16:19:13 +0100
commit1a725ff0b42a6a97720f4663b9c5426fd5919079 (patch)
treebec96938ae0291697af3c1b6d3314a560bfcb13a /sw/qa
parent5c1482c3e37502bce2b3be106d1a70938ce8b30c (diff)
cast to size_t altogether
Change-Id: I93cb374bd9743c45c4f3a98799a5f448dbb46fd8
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/core/uwriter.cxx4
1 files changed, 2 insertions, 2 deletions
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<sal_uLong>(0), nNodes);
+ size_t nNodes = aPos.nNode.GetNode().GetIndex() - aPos.nNode.GetNode().StartOfSectionIndex();
+ size_t n = comphelper::rng::uniform_int_distribution(static_cast<size_t>(0), nNodes);
SwPaM pam(aPos);
for (sal_uLong i = 0; i < n; ++i)
{