diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:25:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:25:38 +0100 |
commit | 029149e9b7aa8ad66dca2972e26385c831153c80 (patch) | |
tree | fd5cc80e4372eecd4e9d68b636a39ef406cd286c /desktop/source/splash | |
parent | 6e8765b161a1c839fd303eecbd4ddd56f85b86ac (diff) |
More loplugin:cstylecast: desktop
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I492363d79e443221b139f0c192a552cc5548ee4f
Diffstat (limited to 'desktop/source/splash')
-rw-r--r-- | desktop/source/splash/splash.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index 60efbf57d979..4d5f31148d71 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -38,7 +38,7 @@ #include <vcl/introwin.hxx> #include <vcl/virdev.hxx> -#define NOT_LOADED ((long)-1) +#define NOT_LOADED (long(-1)) using namespace ::com::sun::star::lang; using namespace ::com::sun::star::registry; @@ -473,7 +473,7 @@ void SplashScreen::SetScreenBitmap(BitmapEx &rBitmap) if ( nCount > 0 ) { // retrieve size from first screen - tools::Rectangle aScreenArea = Application::GetScreenPosSizePixel((unsigned int)0); + tools::Rectangle aScreenArea = Application::GetScreenPosSizePixel(static_cast<unsigned int>(0)); nWidth = aScreenArea.GetWidth(); nHeight = aScreenArea.GetHeight(); } @@ -516,7 +516,7 @@ void SplashScreen::determineProgressRatioValues( if ( nCount > 0 ) { // retrieve size from first screen - tools::Rectangle aScreenArea = Application::GetScreenPosSizePixel((unsigned int)0); + tools::Rectangle aScreenArea = Application::GetScreenPosSizePixel(static_cast<unsigned int>(0)); nWidth = aScreenArea.GetWidth(); nHeight = aScreenArea.GetHeight(); nScreenRatio = nHeight ? sal_Int32( rtl::math::round( double( nWidth ) / double( nHeight ), 2 ) * 100 ) : 0; |