diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-18 22:03:52 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-18 22:04:37 +0100 |
commit | 91c8b357ee2a27e50da0e99386e53d351e55cfda (patch) | |
tree | cf056c64c2d2326639e9ca5e469e0ab9771fa4cd | |
parent | 0a21cce0c90a639918d8e58ac5daa4b8f674666f (diff) |
Cppcheck: Variables reassigned before the old one has been use
See http://nabble.documentfoundation.org/cppcheck-Variables-reassigned-before-the-old-one-has-been-used-vcl-kde4-part-td4044235.html
Change-Id: I9ce272c4116395a95a09e5633acfeaa5b1edbe12
-rw-r--r-- | vcl/unx/kde4/KDESalFrame.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx index 6f3fe53e1441..6039daa6bd22 100644 --- a/vcl/unx/kde4/KDESalFrame.cxx +++ b/vcl/unx/kde4/KDESalFrame.cxx @@ -298,11 +298,8 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings ) QPalette qMenuCG = pMenuBar->palette(); // Menu text and background color, theme specific - Color aMenuFore = toColor( qMenuCG.color( QPalette::WindowText ) ); - Color aMenuBack = toColor( qMenuCG.color( QPalette::Window ) ); - - aMenuFore = toColor( qMenuCG.color( QPalette::ButtonText ) ); - aMenuBack = toColor( qMenuCG.color( QPalette::Button ) ); + Color aMenuFore = toColor( qMenuCG.color( QPalette::ButtonText ) ); + Color aMenuBack = toColor( qMenuCG.color( QPalette::Button ) ); style.SetMenuTextColor( aMenuFore ); style.SetMenuBarTextColor( aMenuFore ); |