Kaydet (Commit) 91c8b357 authored tarafından Julien Nabet's avatar Julien Nabet

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
üst 0a21cce0
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment