summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-13 17:57:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-13 18:30:30 +0200
commit7ea8f8af1c78c2144d0d6fe86c9e72ebca2038b7 (patch)
treebf70920bfd6cd9a5f9bc6d029b5e3ddfd6cfb489 /lotuswordpro
parenta6aec01230185e3dbd1118e5f2cb690d2998d034 (diff)
clang-analyzer-deadcode.DeadStores
...and reduction of variable scope Change-Id: I1fa14c04646bf9faf35de9e54969589be64ea006
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpfribptr.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx
index 5e3d1e56e977..e149f62f7dd1 100644
--- a/lotuswordpro/source/filter/lwpfribptr.cxx
+++ b/lotuswordpro/source/filter/lwpfribptr.cxx
@@ -90,11 +90,9 @@ LwpFribPtr::LwpFribPtr()
LwpFribPtr::~LwpFribPtr()
{
- LwpFrib* pNextFrib = m_pFribs;
- LwpFrib* pCurFrib = m_pFribs;
- while(pCurFrib)
+ for (LwpFrib* pCurFrib = m_pFribs; pCurFrib;)
{
- pNextFrib = pCurFrib -> GetNext();
+ LwpFrib* pNextFrib = pCurFrib -> GetNext();
delete pCurFrib;
pCurFrib = pNextFrib;
}