summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-07 13:45:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-07 14:21:16 +0100
commitfb6d3b883bfcd8de73d4426cc68ed6a7cc9e773a (patch)
treec136bf85c72aba4a8273c6e666775b4819c4c5cd /slideshow
parent75a23240d6ac090305f18ca93094ce2739eb8646 (diff)
disambiguate uniform_int_distribution
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/inc/tools.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/inc/tools.hxx b/slideshow/source/inc/tools.hxx
index 682530f3bbc0..e1eefd7f1923 100644
--- a/slideshow/source/inc/tools.hxx
+++ b/slideshow/source/inc/tools.hxx
@@ -293,7 +293,7 @@ namespace slideshow
/// Gets a random ordinal [0,n)
inline ::std::size_t getRandomOrdinal( const ::std::size_t n )
{
- return comphelper::rng::uniform_int_distribution(static_cast<size_t>(0), n-1);
+ return comphelper::rng::uniform_size_distribution(0, n-1);
}
/// To work around ternary operator in initializer lists