summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui/glbltree.cxx
diff options
context:
space:
mode:
authorJoachim Trémouroux <joachim.tremouroux@gmail.com>2010-12-10 20:32:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-10 20:32:10 +0000
commitfe03a0cc68d8b1ba8b8d1e2eb539532efd240381 (patch)
treed1b3965f25b8b82d1601108c41cb18de9d6b66ab /sw/source/ui/utlui/glbltree.cxx
parent173131758becc5609a91ea96d7c11f0188eb10d3 (diff)
cppcheck: remove warnings
Diffstat (limited to 'sw/source/ui/utlui/glbltree.cxx')
-rw-r--r--sw/source/ui/utlui/glbltree.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index 9a461ada9f94..6d911e3c8aa1 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -1252,9 +1252,8 @@ void SwLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
SvLBoxEntry* pEntry )
{
SwGlblDocContent* pCont = (SwGlblDocContent*)pEntry->GetUserData();
- const SwSection* pSect;
if(pCont->GetType() == GLBLDOC_SECTION &&
- !(pSect = pCont->GetSection())->IsConnectFlag() )
+ !(pCont->GetSection())->IsConnectFlag() )
{
Font aOldFont( rDev.GetFont());
Font aFont(aOldFont);