From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/resources/wallpaper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/wallpaper.cpp') diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp index f6cb32e1b..e7a1b8253 100644 --- a/src/resources/wallpaper.cpp +++ b/src/resources/wallpaper.cpp @@ -141,8 +141,8 @@ std::string Wallpaper::getWallpaper(const int width, const int height) { // Return randomly a wallpaper between vector[0] and // vector[vector.size() - 1] - srand(static_cast(time(nullptr))); - return wallPaperVector[static_cast(static_cast( + srand(CAST_U32(time(nullptr))); + return wallPaperVector[CAST_S32(static_cast( wallPaperVector.size()) * rand() / (RAND_MAX + 1.0))]; } -- cgit v1.2.3-60-g2f50