summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-08-29 09:13:48 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-06 22:39:47 +0200
commit40620d716b9f07924fe8896ca59753858b259d65 (patch)
treeaf58e9c3438b10948d6e91aec9053f7480540213 /vcl
parent80bf270d9b461261335103bbd6625345ec3c9d78 (diff)
[cppchecker] local variable deleted
this local declaration makes no sense, based on the previous code, it seems this is a rest of the former code change
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/gdi/winlayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index 6eb423f72cf6..a7989a7ea898 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -692,7 +692,7 @@ long SimpleWinLayout::FillDXArray( long* pDXArray ) const
{
if( !mnWidth )
{
- long mnWidth = mnBaseAdv;
+ mnWidth = mnBaseAdv;
for( int i = 0; i < mnGlyphCount; ++i )
mnWidth += mpGlyphAdvances[ i ];
}