diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-07 13:45:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-07 14:21:16 +0100 |
commit | fb6d3b883bfcd8de73d4426cc68ed6a7cc9e773a (patch) | |
tree | c136bf85c72aba4a8273c6e666775b4819c4c5cd /sw | |
parent | 75a23240d6ac090305f18ca93094ce2739eb8646 (diff) |
disambiguate uniform_int_distribution
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/uwriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index e7a7156dc06e..fe8dd092a5d3 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -965,7 +965,7 @@ getRandomPosition(SwDoc *pDoc, int /* nOffset */) { const SwPosition aPos(pDoc->GetNodes().GetEndOfContent()); 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); + size_t n = comphelper::rng::uniform_size_distribution(0, nNodes); SwPaM pam(aPos); for (sal_uLong i = 0; i < n; ++i) { |