Kaydet (Commit) 1a725ff0 authored tarafından Caolán McNamara's avatar Caolán McNamara

cast to size_t altogether

Change-Id: I93cb374bd9743c45c4f3a98799a5f448dbb46fd8
üst 5c1482c3
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment