diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-01-31 22:50:13 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-01-31 22:50:13 +0100 |
commit | 79de46edde90a8215b902de255f6a8fab8de1931 (patch) | |
tree | ff80b2ae0c7bbfc1a04e6c486a8946a32fb72fc3 /desktop/source/splash | |
parent | def75a807790721a4569befee6f96ba318f06598 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'desktop/source/splash')
-rw-r--r-- | desktop/source/splash/splash.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index d0f1230c644f..e88267dbf9e4 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -322,8 +322,6 @@ void SplashScreen::loadConfig() if ( sProgressFrameColor.getLength() ) { UINT8 nRed = 0; - UINT8 nGreen = 0; - UINT8 nBlue = 0; sal_Int32 idx = 0; sal_Int32 temp = sProgressFrameColor.getToken( 0, ',', idx ).toInt32(); if ( idx != -1 ) @@ -333,8 +331,8 @@ void SplashScreen::loadConfig() } if ( idx != -1 ) { - nGreen = static_cast< UINT8 >( temp ); - nBlue = static_cast< UINT8 >( sProgressFrameColor.getToken( 0, ',', idx ).toInt32() ); + UINT8 nGreen = static_cast< UINT8 >( temp ); + UINT8 nBlue = static_cast< UINT8 >( sProgressFrameColor.getToken( 0, ',', idx ).toInt32() ); _cProgressFrameColor = Color( nRed, nGreen, nBlue ); } } @@ -342,8 +340,6 @@ void SplashScreen::loadConfig() if ( sProgressBarColor.getLength() ) { UINT8 nRed = 0; - UINT8 nGreen = 0; - UINT8 nBlue = 0; sal_Int32 idx = 0; sal_Int32 temp = sProgressBarColor.getToken( 0, ',', idx ).toInt32(); if ( idx != -1 ) @@ -353,8 +349,8 @@ void SplashScreen::loadConfig() } if ( idx != -1 ) { - nGreen = static_cast< UINT8 >( temp ); - nBlue = static_cast< UINT8 >( sProgressBarColor.getToken( 0, ',', idx ).toInt32() ); + UINT8 nGreen = static_cast< UINT8 >( temp ); + UINT8 nBlue = static_cast< UINT8 >( sProgressBarColor.getToken( 0, ',', idx ).toInt32() ); _cProgressBarColor = Color( nRed, nGreen, nBlue ); } } |