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 /slideshow/source | |
parent | 75a23240d6ac090305f18ca93094ce2739eb8646 (diff) |
disambiguate uniform_int_distribution
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
Diffstat (limited to 'slideshow/source')
-rw-r--r-- | slideshow/source/inc/tools.hxx | 2 |
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 |