summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-08-14 23:43:50 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-08-14 23:44:09 +0200
commit5662ed17c5c5610ab7dec0db0072124dd4e313d6 (patch)
treee54077b473ccedc6f4c3f9f042d1e407035e0580 /writerfilter
parent5cca1c3f9162343fd92ae2344d24a571b07e9e39 (diff)
Reduce scope
Change-Id: I5cbb44df09291b8a1b74e8aa176d6471960b3391
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastHelper.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastHelper.hxx b/writerfilter/source/ooxml/OOXMLFastHelper.hxx
index 8863bde8a326..719849476f8c 100644
--- a/writerfilter/source/ooxml/OOXMLFastHelper.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastHelper.hxx
@@ -146,10 +146,9 @@ OOXMLFastHelper<T>::createAndSetParentRef
uno::Reference<XFastContextHandler> xChild =
pTmp->createFastChildContext(nToken, Attribs);
- OOXMLFastContextHandler * pResult = NULL;
if (xChild.is())
{
- pResult = dynamic_cast<OOXMLFastContextHandler *>(xChild.get());
+ OOXMLFastContextHandler* pResult = dynamic_cast<OOXMLFastContextHandler *>(xChild.get());
pResult->setToken(nToken);
pResult->setParent(pHandler);
}