diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-09-27 23:23:56 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-09-27 23:23:56 +0200 |
commit | 32095947489f10898c87a22162abdfdeaabda8fe (patch) | |
tree | 431b4eb4d9e2e4e580a7396978ec8b1008358a09 /svtools/source | |
parent | ed0b3988db9fc3ec33e25e617b638841d787b10f (diff) |
cppcheck: redundantAssignment
Change-Id: I16ced23894e461e7953ed4978ca0d4cf7f40f5e8
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 8855dcd607d8..32513d41e4f1 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -930,11 +930,10 @@ sal_uInt16 LineListBox::GetEntryStyle( sal_uInt16 nPos ) const sal_Bool LineListBox::UpdatePaintLineColor( void ) { - sal_Bool bRet = sal_True; const StyleSettings& rSettings = GetSettings().GetStyleSettings(); Color aNewCol( rSettings.GetWindowColor().IsDark()? rSettings.GetLabelTextColor() : aColor ); - bRet = aNewCol != maPaintCol; + sal_Bool bRet = aNewCol != maPaintCol; if( bRet ) maPaintCol = aNewCol; |