summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgdocumenthandler.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:24:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:45 +0100
commit6f06230da10c6a51c5538f1b5515b341475ea043 (patch)
tree4729ecc6b256810d890fc4ad32b6dd5f4ef0ee44 /svgio/source/svgreader/svgdocumenthandler.cxx
parent35b3228609f3c4f3ae37695597f0d11127467bb8 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I0164a67073395b865fa3e3ce342665f6497dc5b8
Diffstat (limited to 'svgio/source/svgreader/svgdocumenthandler.cxx')
-rw-r--r--svgio/source/svgreader/svgdocumenthandler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svgio/source/svgreader/svgdocumenthandler.cxx b/svgio/source/svgreader/svgdocumenthandler.cxx
index 166e942fe6a0..05f6d4146343 100644
--- a/svgio/source/svgreader/svgdocumenthandler.cxx
+++ b/svgio/source/svgreader/svgdocumenthandler.cxx
@@ -136,7 +136,7 @@ namespace svgio
{
SvgDocHdl::SvgDocHdl(const OUString& aAbsolutePath)
: maDocument(aAbsolutePath),
- mpTarget(0),
+ mpTarget(nullptr),
maCssContents(),
bSkip(false)
{
@@ -407,9 +407,9 @@ namespace svgio
if(!aName.isEmpty())
{
const SVGToken aSVGToken(StrToSVGToken(aName, false));
- SvgNode* pWhitespaceCheck(SVGTokenText == aSVGToken ? mpTarget : 0);
- SvgStyleNode* pCssStyle(SVGTokenStyle == aSVGToken ? static_cast< SvgStyleNode* >(mpTarget) : 0);
- SvgTitleDescNode* pSvgTitleDescNode(SVGTokenTitle == aSVGToken || SVGTokenDesc == aSVGToken ? static_cast< SvgTitleDescNode* >(mpTarget) : 0);
+ SvgNode* pWhitespaceCheck(SVGTokenText == aSVGToken ? mpTarget : nullptr);
+ SvgStyleNode* pCssStyle(SVGTokenStyle == aSVGToken ? static_cast< SvgStyleNode* >(mpTarget) : nullptr);
+ SvgTitleDescNode* pSvgTitleDescNode(SVGTokenTitle == aSVGToken || SVGTokenDesc == aSVGToken ? static_cast< SvgTitleDescNode* >(mpTarget) : nullptr);
// if we are in skipping mode and we reach the flowRoot end tag: stop skipping mode
if(bSkip && aSVGToken == SVGTokenFlowRoot)
@@ -537,7 +537,7 @@ namespace svgio
if(pWhitespaceCheck)
{
// cleanup read strings
- whiteSpaceHandling(pWhitespaceCheck, 0);
+ whiteSpaceHandling(pWhitespaceCheck, nullptr);
}
}
}
@@ -555,7 +555,7 @@ namespace svgio
case SVGTokenTextPath:
{
const SvgNodeVector& rChilds = mpTarget->getChildren();
- SvgCharacterNode* pTarget = 0;
+ SvgCharacterNode* pTarget = nullptr;
if(rChilds.size())
{