[Libreoffice-commits] core.git: vcl/win

Julien Nabet serval2412 at yahoo.fr
Sat Feb 1 12:52:14 PST 2014


 vcl/win/source/gdi/salnativewidgets-luna.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 015f1eff67881a0f2cec0bf0da14dc00f1eade0d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Feb 1 21:51:38 2014 +0100

    cppcheck: redundantAssignment
    
    Change-Id: I9fa611a2f47d2a7f54835419adf0b6c2610ebb66

diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx
index dc9885f1..161cc39 100644
--- a/vcl/win/source/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx
@@ -651,11 +651,10 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
         if( aValue.getType() == CTRL_SPINBUTTONS )
         {
             const SpinbuttonValue* pValue = (aValue.getType() == CTRL_SPINBUTTONS) ? static_cast<const SpinbuttonValue*>(&aValue) : NULL;
-            sal_Bool bOk = sal_False;
 
             RECT rect;
             ImplConvertSpinbuttonValues( pValue->mnUpperPart, pValue->mnUpperState, pValue->maUpperRect, &iPart, &iState, &rect );
-            bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption);
+            sal_Bool bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption);
 
             if( bOk )
             {
@@ -676,11 +675,10 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
             if( aValue.getType() == CTRL_SPINBUTTONS )
             {
                 const SpinbuttonValue *pValue = static_cast<const SpinbuttonValue*>(&aValue);
-                sal_Bool bOk = sal_False;
 
                 RECT rect;
                 ImplConvertSpinbuttonValues( pValue->mnUpperPart, pValue->mnUpperState, pValue->maUpperRect, &iPart, &iState, &rect );
-                bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption);
+                sal_Bool bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption);
 
                 if( bOk )
                 {


More information about the Libreoffice-commits mailing list