diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-19 08:47:29 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-19 11:00:32 +0000 |
commit | d41bc0f7b328ed6c69b2c2822de00165cdc62c61 (patch) | |
tree | f92cb1c15af79b7100e90d713eaa3ee6adcd5115 /lotuswordpro/source/filter/lwpfoundry.cxx | |
parent | icu#11451 bidi, the gift that keeps on giving (diff) | |
download | core-d41bc0f7b328ed6c69b2c2822de00165cdc62c61.tar.gz core-d41bc0f7b328ed6c69b2c2822de00165cdc62c61.zip |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: Idcedd908c653d5a5700884f233ad134dde8be018
Reviewed-on: https://gerrit.libreoffice.org/13540
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'lotuswordpro/source/filter/lwpfoundry.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfoundry.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfoundry.cxx b/lotuswordpro/source/filter/lwpfoundry.cxx index 580f5fd3f0bb..232afb861d09 100644 --- a/lotuswordpro/source/filter/lwpfoundry.cxx +++ b/lotuswordpro/source/filter/lwpfoundry.cxx @@ -488,7 +488,6 @@ LwpOrderedObject* LwpOrderedObjectManager::Enumerate(LwpOrderedObject * pLast) LwpListList* LwpOrderedObjectManager::GetNextActiveListList(LwpListList * pLast) { LwpListList* pList = NULL; - LwpContent* pContent = NULL; if(pLast) pList = static_cast<LwpListList*>(pLast->GetNext().obj().get()); else @@ -502,7 +501,7 @@ LwpListList* LwpOrderedObjectManager::GetNextActiveListList(LwpListList * pLast) while(pList) { - pContent = static_cast<LwpContent*>(pList->GetObject().obj().get()); + LwpContent* pContent = static_cast<LwpContent*>(pList->GetObject().obj().get()); if(pContent && pContent->HasNonEmbeddedLayouts() && !pContent->IsStyleContent()) return pList; |