summaryrefslogtreecommitdiff
path: root/sd/source/filter/html/htmlex.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-20 21:45:16 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-12-21 20:19:32 +0100
commitfb7c18884223f08818b44a9953b55c69a029c71c (patch)
tree41d11ccc6603ccb1a5e48512e012e58db792157a /sd/source/filter/html/htmlex.cxx
parent17fc7aa3b8fcd731fb05b5e17e23ee984d166a8f (diff)
fdo#39440 sd: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I14107ca24aa98f4111f542c3999866eb1a93a72b
Diffstat (limited to 'sd/source/filter/html/htmlex.cxx')
-rw-r--r--sd/source/filter/html/htmlex.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index 66544a24a1c4..23a3ce37c5fa 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -1035,12 +1035,11 @@ bool HtmlExport::CreateImagesForPresPages( bool bThumbnail)
SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage* pPage)
{
const size_t nObjectCount = pPage->GetObjCount();
- SdrObject* pObject = NULL;
SdrTextObj* pResult = NULL;
for (size_t nObject = 0; nObject < nObjectCount; ++nObject)
{
- pObject = pPage->GetObj(nObject);
+ SdrObject* pObject = pPage->GetObj(nObject);
if (pObject->GetObjInventor() == SdrInventor &&
pObject->GetObjIdentifier() == OBJ_OUTLINETEXT)
{
@@ -1326,13 +1325,12 @@ void HtmlExport::WriteOutlinerParagraph(OUStringBuffer& aStr, SdrOutliner* pOutl
sal_Int32 nCount = pOutliner->GetParagraphCount();
- Paragraph* pParagraph = NULL;
sal_Int16 nCurrentDepth = -1;
for (sal_Int32 nIndex = 0; nIndex < nCount; nIndex++)
{
- pParagraph = pOutliner->GetParagraph(nIndex);
+ Paragraph* pParagraph = pOutliner->GetParagraph(nIndex);
if(pParagraph == NULL)
continue;