From ffeced9dbcd92fbedf12a9ab8d0309353c7dad71 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 15 Nov 2026 02:00:40 -0300
Subject: Use nullptr in KSVG DOM sources
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Update the maintained KSVG DOM implementation as a single build and parser unit.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 ksvg/dom/SVGAElement.cpp                          |  6 ++--
 ksvg/dom/SVGAltGlyphDefElement.cpp                |  4 +--
 ksvg/dom/SVGAltGlyphElement.cpp                   |  4 +--
 ksvg/dom/SVGAngle.cpp                             |  2 +-
 ksvg/dom/SVGAnimateColorElement.cpp               |  4 +--
 ksvg/dom/SVGAnimateElement.cpp                    |  4 +--
 ksvg/dom/SVGAnimateMotionElement.cpp              |  4 +--
 ksvg/dom/SVGAnimateTransformElement.cpp           |  4 +--
 ksvg/dom/SVGAnimatedAngle.cpp                     |  6 ++--
 ksvg/dom/SVGAnimatedBoolean.cpp                   |  2 +-
 ksvg/dom/SVGAnimatedEnumeration.cpp               |  2 +-
 ksvg/dom/SVGAnimatedInteger.cpp                   |  2 +-
 ksvg/dom/SVGAnimatedLength.cpp                    |  6 ++--
 ksvg/dom/SVGAnimatedLengthList.cpp                |  6 ++--
 ksvg/dom/SVGAnimatedNumber.cpp                    |  2 +-
 ksvg/dom/SVGAnimatedNumberList.cpp                |  6 ++--
 ksvg/dom/SVGAnimatedPathData.cpp                  | 10 +++----
 ksvg/dom/SVGAnimatedPoints.cpp                    |  6 ++--
 ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp       |  6 ++--
 ksvg/dom/SVGAnimatedRect.cpp                      |  6 ++--
 ksvg/dom/SVGAnimatedString.cpp                    |  2 +-
 ksvg/dom/SVGAnimatedTransformList.cpp             |  6 ++--
 ksvg/dom/SVGAnimationElement.cpp                  |  6 ++--
 ksvg/dom/SVGCSSRule.cpp                           |  2 +-
 ksvg/dom/SVGCircleElement.cpp                     | 10 +++----
 ksvg/dom/SVGClipPathElement.cpp                   |  4 +--
 ksvg/dom/SVGColor.cpp                             |  4 +--
 ksvg/dom/SVGColorProfileElement.cpp               |  4 +--
 ksvg/dom/SVGColorProfileRule.cpp                  |  2 +-
 ksvg/dom/SVGComponentTransferFunctionElement.cpp  | 18 ++++++------
 ksvg/dom/SVGCursorElement.cpp                     |  8 ++---
 ksvg/dom/SVGDefinitionSrcElement.cpp              |  4 +--
 ksvg/dom/SVGDefsElement.cpp                       |  4 +--
 ksvg/dom/SVGDescElement.cpp                       |  4 +--
 ksvg/dom/SVGDocument.cpp                          | 10 +++----
 ksvg/dom/SVGElement.cpp                           |  8 ++---
 ksvg/dom/SVGElementInstance.cpp                   | 18 ++++++------
 ksvg/dom/SVGElementInstanceList.cpp               |  4 +--
 ksvg/dom/SVGEllipseElement.cpp                    | 12 ++++----
 ksvg/dom/SVGEvent.cpp                             |  4 +--
 ksvg/dom/SVGExternalResourcesRequired.cpp         |  6 ++--
 ksvg/dom/SVGFEBlendElement.cpp                    | 10 +++----
 ksvg/dom/SVGFEColorMatrixElement.cpp              | 10 +++----
 ksvg/dom/SVGFEComponentTransferElement.cpp        |  6 ++--
 ksvg/dom/SVGFECompositeElement.cpp                | 18 ++++++------
 ksvg/dom/SVGFEConvolveMatrixElement.cpp           | 26 ++++++++--------
 ksvg/dom/SVGFEDiffuseLightingElement.cpp          |  8 ++---
 ksvg/dom/SVGFEDisplacementMapElement.cpp          | 14 ++++-----
 ksvg/dom/SVGFEDistantLightElement.cpp             |  8 ++---
 ksvg/dom/SVGFEFloodElement.cpp                    |  6 ++--
 ksvg/dom/SVGFEFuncAElement.cpp                    |  4 +--
 ksvg/dom/SVGFEFuncBElement.cpp                    |  4 +--
 ksvg/dom/SVGFEFuncGElement.cpp                    |  4 +--
 ksvg/dom/SVGFEFuncRElement.cpp                    |  4 +--
 ksvg/dom/SVGFEGaussianBlurElement.cpp             | 10 +++----
 ksvg/dom/SVGFEImageElement.cpp                    |  4 +--
 ksvg/dom/SVGFEMergeElement.cpp                    |  4 +--
 ksvg/dom/SVGFEMergeNodeElement.cpp                |  6 ++--
 ksvg/dom/SVGFEMorphologyElement.cpp               | 12 ++++----
 ksvg/dom/SVGFEOffsetElement.cpp                   | 10 +++----
 ksvg/dom/SVGFEPointLightElement.cpp               | 10 +++----
 ksvg/dom/SVGFESpecularLightingElement.cpp         | 12 ++++----
 ksvg/dom/SVGFESpotLightElement.cpp                | 20 ++++++-------
 ksvg/dom/SVGFETileElement.cpp                     |  6 ++--
 ksvg/dom/SVGFETurbulenceElement.cpp               | 16 +++++-----
 ksvg/dom/SVGFilterElement.cpp                     | 20 ++++++-------
 ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp | 10 +++----
 ksvg/dom/SVGFitToViewBox.cpp                      |  8 ++---
 ksvg/dom/SVGFontElement.cpp                       |  4 +--
 ksvg/dom/SVGFontFaceElement.cpp                   |  4 +--
 ksvg/dom/SVGFontFaceFormatElement.cpp             |  4 +--
 ksvg/dom/SVGFontFaceNameElement.cpp               |  4 +--
 ksvg/dom/SVGFontFaceSrcElement.cpp                |  4 +--
 ksvg/dom/SVGFontFaceUriElement.cpp                |  4 +--
 ksvg/dom/SVGForeignObjectElement.cpp              | 10 +++----
 ksvg/dom/SVGGElement.cpp                          |  4 +--
 ksvg/dom/SVGGlyphElement.cpp                      |  4 +--
 ksvg/dom/SVGGlyphRefElement.cpp                   |  4 +--
 ksvg/dom/SVGGradientElement.cpp                   | 10 +++----
 ksvg/dom/SVGHKernElement.cpp                      |  4 +--
 ksvg/dom/SVGICCColor.cpp                          |  4 +--
 ksvg/dom/SVGImageElement.cpp                      | 14 ++++-----
 ksvg/dom/SVGLangSpace.cpp                         |  4 +--
 ksvg/dom/SVGLength.cpp                            |  2 +-
 ksvg/dom/SVGLengthList.cpp                        | 14 ++++-----
 ksvg/dom/SVGLineElement.cpp                       | 12 ++++----
 ksvg/dom/SVGLinearGradientElement.cpp             | 12 ++++----
 ksvg/dom/SVGLocatable.cpp                         | 14 ++++-----
 ksvg/dom/SVGMPathElement.cpp                      |  4 +--
 ksvg/dom/SVGMarkerElement.cpp                     | 18 ++++++------
 ksvg/dom/SVGMaskElement.cpp                       | 16 +++++-----
 ksvg/dom/SVGMatrix.cpp                            | 24 +++++++--------
 ksvg/dom/SVGMetadataElement.cpp                   |  4 +--
 ksvg/dom/SVGMissingGlyphElement.cpp               |  4 +--
 ksvg/dom/SVGNumber.cpp                            |  2 +-
 ksvg/dom/SVGNumberList.cpp                        | 14 ++++-----
 ksvg/dom/SVGPaint.cpp                             |  4 +--
 ksvg/dom/SVGPathElement.cpp                       |  4 +--
 ksvg/dom/SVGPathSegList.cpp                       | 12 ++++----
 ksvg/dom/SVGPatternElement.cpp                    | 18 ++++++------
 ksvg/dom/SVGPoint.cpp                             |  4 +--
 ksvg/dom/SVGPointList.cpp                         | 14 ++++-----
 ksvg/dom/SVGPolygonElement.cpp                    |  8 ++---
 ksvg/dom/SVGPolylineElement.cpp                   |  8 ++---
 ksvg/dom/SVGRadialGradientElement.cpp             | 14 ++++-----
 ksvg/dom/SVGRect.cpp                              |  2 +-
 ksvg/dom/SVGRectElement.cpp                       | 16 +++++-----
 ksvg/dom/SVGSVGElement.cpp                        | 36 +++++++++++------------
 ksvg/dom/SVGScriptElement.cpp                     |  4 +--
 ksvg/dom/SVGSetElement.cpp                        |  4 +--
 ksvg/dom/SVGStopElement.cpp                       |  6 ++--
 ksvg/dom/SVGStringList.cpp                        |  2 +-
 ksvg/dom/SVGStylable.cpp                          |  4 +--
 ksvg/dom/SVGStyleElement.cpp                      |  4 +--
 ksvg/dom/SVGSwitchElement.cpp                     |  4 +--
 ksvg/dom/SVGSymbolElement.cpp                     |  4 +--
 ksvg/dom/SVGTRefElement.cpp                       |  4 +--
 ksvg/dom/SVGTSpanElement.cpp                      |  4 +--
 ksvg/dom/SVGTests.cpp                             | 10 +++----
 ksvg/dom/SVGTextContentElement.cpp                |  4 +--
 ksvg/dom/SVGTextElement.cpp                       |  2 +-
 ksvg/dom/SVGTextPathElement.cpp                   | 10 +++----
 ksvg/dom/SVGTextPositioningElement.cpp            |  2 +-
 ksvg/dom/SVGTitleElement.cpp                      |  4 +--
 ksvg/dom/SVGTransform.cpp                         |  4 +--
 ksvg/dom/SVGTransformList.cpp                     | 16 +++++-----
 ksvg/dom/SVGTransformable.cpp                     |  4 +--
 ksvg/dom/SVGURIReference.cpp                      |  2 +-
 ksvg/dom/SVGUseElement.cpp                        | 16 +++++-----
 ksvg/dom/SVGVKernElement.cpp                      |  4 +--
 ksvg/dom/SVGViewElement.cpp                       |  6 ++--
 ksvg/dom/SVGViewSpec.cpp                          |  6 ++--
 ksvg/dom/SVGWindow.cpp                            |  4 +--
 ksvg/dom/SVGZoomAndPan.cpp                        |  4 +--
 ksvg/dom/SVGZoomEvent.cpp                         | 10 +++----
 135 files changed, 506 insertions(+), 506 deletions(-)

diff --git a/ksvg/dom/SVGAElement.cpp b/ksvg/dom/SVGAElement.cpp
index de7b1a20..0bbb7195 100644
--- a/ksvg/dom/SVGAElement.cpp
+++ b/ksvg/dom/SVGAElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGAElement::SVGAElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAElement::SVGAElement(const SVGAElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0)
+SVGAElement::SVGAElement(const SVGAElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,6 +73,6 @@ SVGAElement::~SVGAElement()
 
 SVGAnimatedString SVGAElement::target() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->target());
 }
diff --git a/ksvg/dom/SVGAltGlyphDefElement.cpp b/ksvg/dom/SVGAltGlyphDefElement.cpp
index caeddbd9..ba807ad5 100644
--- a/ksvg/dom/SVGAltGlyphDefElement.cpp
+++ b/ksvg/dom/SVGAltGlyphDefElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAltGlyphDefElement::SVGAltGlyphDefElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAltGlyphDefElement::SVGAltGlyphDefElement(const SVGAltGlyphDefElement &other) : SVGElement(other), impl(0)
+SVGAltGlyphDefElement::SVGAltGlyphDefElement(const SVGAltGlyphDefElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAltGlyphElement.cpp b/ksvg/dom/SVGAltGlyphElement.cpp
index c21d7623..0cf03534 100644
--- a/ksvg/dom/SVGAltGlyphElement.cpp
+++ b/ksvg/dom/SVGAltGlyphElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAltGlyphElement::SVGAltGlyphElement() : SVGTextPositioningElement(), SVGURIReference()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAltGlyphElement::SVGAltGlyphElement(const SVGAltGlyphElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(0)
+SVGAltGlyphElement::SVGAltGlyphElement(const SVGAltGlyphElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAngle.cpp b/ksvg/dom/SVGAngle.cpp
index bb1aac60..6206c418 100644
--- a/ksvg/dom/SVGAngle.cpp
+++ b/ksvg/dom/SVGAngle.cpp
@@ -29,7 +29,7 @@ SVGAngle::SVGAngle()
 	impl->ref();
 }
 
-SVGAngle::SVGAngle(const SVGAngle &other) : impl(0)
+SVGAngle::SVGAngle(const SVGAngle &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimateColorElement.cpp b/ksvg/dom/SVGAnimateColorElement.cpp
index 32a5f153..51d0e8b1 100644
--- a/ksvg/dom/SVGAnimateColorElement.cpp
+++ b/ksvg/dom/SVGAnimateColorElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAnimateColorElement::SVGAnimateColorElement() : SVGAnimationElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAnimateColorElement::SVGAnimateColorElement(const SVGAnimateColorElement &other) : SVGAnimationElement(other), impl(0)
+SVGAnimateColorElement::SVGAnimateColorElement(const SVGAnimateColorElement &other) : SVGAnimationElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimateElement.cpp b/ksvg/dom/SVGAnimateElement.cpp
index 1370b93d..f6b34c33 100644
--- a/ksvg/dom/SVGAnimateElement.cpp
+++ b/ksvg/dom/SVGAnimateElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAnimateElement::SVGAnimateElement() : SVGAnimationElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAnimateElement::SVGAnimateElement(const SVGAnimateElement &other) : SVGAnimationElement(other), impl(0)
+SVGAnimateElement::SVGAnimateElement(const SVGAnimateElement &other) : SVGAnimationElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimateMotionElement.cpp b/ksvg/dom/SVGAnimateMotionElement.cpp
index 8b1b7d2c..f654c978 100644
--- a/ksvg/dom/SVGAnimateMotionElement.cpp
+++ b/ksvg/dom/SVGAnimateMotionElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAnimateMotionElement::SVGAnimateMotionElement() : SVGAnimationElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAnimateMotionElement::SVGAnimateMotionElement(const SVGAnimateMotionElement &other) : SVGAnimationElement(), impl(0)
+SVGAnimateMotionElement::SVGAnimateMotionElement(const SVGAnimateMotionElement &other) : SVGAnimationElement(), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimateTransformElement.cpp b/ksvg/dom/SVGAnimateTransformElement.cpp
index 3bc6a04b..1ac01a12 100644
--- a/ksvg/dom/SVGAnimateTransformElement.cpp
+++ b/ksvg/dom/SVGAnimateTransformElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAnimateTransformElement::SVGAnimateTransformElement() : SVGAnimationElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAnimateTransformElement::SVGAnimateTransformElement(const SVGAnimateTransformElement &other) : SVGAnimationElement(other), impl(0)
+SVGAnimateTransformElement::SVGAnimateTransformElement(const SVGAnimateTransformElement &other) : SVGAnimationElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimatedAngle.cpp b/ksvg/dom/SVGAnimatedAngle.cpp
index f602defe..0991e4a6 100644
--- a/ksvg/dom/SVGAnimatedAngle.cpp
+++ b/ksvg/dom/SVGAnimatedAngle.cpp
@@ -30,7 +30,7 @@ SVGAnimatedAngle::SVGAnimatedAngle()
 	impl->ref();
 }
 
-SVGAnimatedAngle::SVGAnimatedAngle(const SVGAnimatedAngle &other) : impl(0)
+SVGAnimatedAngle::SVGAnimatedAngle(const SVGAnimatedAngle &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -66,12 +66,12 @@ SVGAnimatedAngle::~SVGAnimatedAngle()
 
 SVGAngle SVGAnimatedAngle::baseVal() const
 {
-	if(!impl) return SVGAngle(0);
+	if(!impl) return SVGAngle(nullptr);
 	return SVGAngle(impl->baseVal());
 }
 
 SVGAngle SVGAnimatedAngle::animVal() const
 {
-	if(!impl) return SVGAngle(0);
+	if(!impl) return SVGAngle(nullptr);
 	return SVGAngle(impl->animVal());
 }
diff --git a/ksvg/dom/SVGAnimatedBoolean.cpp b/ksvg/dom/SVGAnimatedBoolean.cpp
index 29e24a67..a3b54433 100644
--- a/ksvg/dom/SVGAnimatedBoolean.cpp
+++ b/ksvg/dom/SVGAnimatedBoolean.cpp
@@ -29,7 +29,7 @@ SVGAnimatedBoolean::SVGAnimatedBoolean()
 	impl->ref();
 }
 
-SVGAnimatedBoolean::SVGAnimatedBoolean(const SVGAnimatedBoolean &other) : impl(0)
+SVGAnimatedBoolean::SVGAnimatedBoolean(const SVGAnimatedBoolean &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimatedEnumeration.cpp b/ksvg/dom/SVGAnimatedEnumeration.cpp
index 061dc0df..7735912f 100644
--- a/ksvg/dom/SVGAnimatedEnumeration.cpp
+++ b/ksvg/dom/SVGAnimatedEnumeration.cpp
@@ -29,7 +29,7 @@ SVGAnimatedEnumeration::SVGAnimatedEnumeration()
 	impl->ref();
 }
 
-SVGAnimatedEnumeration::SVGAnimatedEnumeration(const SVGAnimatedEnumeration &other) : impl(0)
+SVGAnimatedEnumeration::SVGAnimatedEnumeration(const SVGAnimatedEnumeration &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimatedInteger.cpp b/ksvg/dom/SVGAnimatedInteger.cpp
index ab91c1cf..8f25667b 100644
--- a/ksvg/dom/SVGAnimatedInteger.cpp
+++ b/ksvg/dom/SVGAnimatedInteger.cpp
@@ -29,7 +29,7 @@ SVGAnimatedInteger::SVGAnimatedInteger()
 	impl->ref();
 }
 
-SVGAnimatedInteger::SVGAnimatedInteger(const SVGAnimatedInteger &other) : impl(0)
+SVGAnimatedInteger::SVGAnimatedInteger(const SVGAnimatedInteger &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimatedLength.cpp b/ksvg/dom/SVGAnimatedLength.cpp
index 4e1cb06b..63f43c94 100644
--- a/ksvg/dom/SVGAnimatedLength.cpp
+++ b/ksvg/dom/SVGAnimatedLength.cpp
@@ -30,7 +30,7 @@ SVGAnimatedLength::SVGAnimatedLength()
 	impl->ref();
 }
 
-SVGAnimatedLength::SVGAnimatedLength(const SVGAnimatedLength &other) : impl(0)
+SVGAnimatedLength::SVGAnimatedLength(const SVGAnimatedLength &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -66,12 +66,12 @@ SVGAnimatedLength::~SVGAnimatedLength()
 
 SVGLength SVGAnimatedLength::baseVal() const
 {
-	if(!impl) return SVGLength(0);
+	if(!impl) return SVGLength(nullptr);
 		return SVGLength(impl->baseVal());
 }
 
 SVGLength SVGAnimatedLength::animVal() const
 {
-	if(!impl) return SVGLength(0);
+	if(!impl) return SVGLength(nullptr);
 		return SVGLength(impl->animVal());
 }
diff --git a/ksvg/dom/SVGAnimatedLengthList.cpp b/ksvg/dom/SVGAnimatedLengthList.cpp
index 2921c4b5..7a35ce01 100644
--- a/ksvg/dom/SVGAnimatedLengthList.cpp
+++ b/ksvg/dom/SVGAnimatedLengthList.cpp
@@ -29,7 +29,7 @@ SVGAnimatedLengthList::SVGAnimatedLengthList()
 	impl->ref();
 }
 
-SVGAnimatedLengthList::SVGAnimatedLengthList(const SVGAnimatedLengthList &other) : impl(0)
+SVGAnimatedLengthList::SVGAnimatedLengthList(const SVGAnimatedLengthList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -65,12 +65,12 @@ SVGAnimatedLengthList::~SVGAnimatedLengthList()
 
 SVGLengthList SVGAnimatedLengthList::baseVal() const
 {
-	if(!impl) return 0;
+	if(!impl) return nullptr;
 	    return impl->animVal();
 }
 
 SVGLengthList SVGAnimatedLengthList::animVal() const
 {
-	if(!impl) return 0;
+	if(!impl) return nullptr;
 	    return impl->baseVal();
 }
diff --git a/ksvg/dom/SVGAnimatedNumber.cpp b/ksvg/dom/SVGAnimatedNumber.cpp
index 78dab4a6..985ff6fe 100644
--- a/ksvg/dom/SVGAnimatedNumber.cpp
+++ b/ksvg/dom/SVGAnimatedNumber.cpp
@@ -29,7 +29,7 @@ SVGAnimatedNumber::SVGAnimatedNumber()
 	impl->ref();
 }
 
-SVGAnimatedNumber::SVGAnimatedNumber(const SVGAnimatedNumber &other) : impl(0)
+SVGAnimatedNumber::SVGAnimatedNumber(const SVGAnimatedNumber &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimatedNumberList.cpp b/ksvg/dom/SVGAnimatedNumberList.cpp
index cf4fb8ae..dc857500 100644
--- a/ksvg/dom/SVGAnimatedNumberList.cpp
+++ b/ksvg/dom/SVGAnimatedNumberList.cpp
@@ -29,7 +29,7 @@ SVGAnimatedNumberList::SVGAnimatedNumberList()
 	impl->ref();
 }
 
-SVGAnimatedNumberList::SVGAnimatedNumberList(const SVGAnimatedNumberList &other) : impl(0)
+SVGAnimatedNumberList::SVGAnimatedNumberList(const SVGAnimatedNumberList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -65,12 +65,12 @@ SVGAnimatedNumberList::~SVGAnimatedNumberList()
 
 SVGNumberList SVGAnimatedNumberList::baseVal() const
 {
-	if(!impl) return 0;
+	if(!impl) return nullptr;
 	    return impl->animVal();
 }
 
 SVGNumberList SVGAnimatedNumberList::animVal() const
 {
-	if(!impl) return 0;
+	if(!impl) return nullptr;
 	    return impl->baseVal();
 }
diff --git a/ksvg/dom/SVGAnimatedPathData.cpp b/ksvg/dom/SVGAnimatedPathData.cpp
index 98b3c739..54f8a6b1 100644
--- a/ksvg/dom/SVGAnimatedPathData.cpp
+++ b/ksvg/dom/SVGAnimatedPathData.cpp
@@ -30,7 +30,7 @@ SVGAnimatedPathData::SVGAnimatedPathData()
 	impl->ref();
 }
 
-SVGAnimatedPathData::SVGAnimatedPathData(const SVGAnimatedPathData &other) : impl(0)
+SVGAnimatedPathData::SVGAnimatedPathData(const SVGAnimatedPathData &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -66,24 +66,24 @@ SVGAnimatedPathData::~SVGAnimatedPathData()
 
 SVGPathSegList SVGAnimatedPathData::pathSegList() const
 {
-	if(!impl) return SVGPathSegList(0);
+	if(!impl) return SVGPathSegList(nullptr);
 	return SVGPathSegList(impl->pathSegList());
 }
 
 SVGPathSegList SVGAnimatedPathData::normalizedPathSegList() const
 {
-	if(!impl) return SVGPathSegList(0);
+	if(!impl) return SVGPathSegList(nullptr);
 	return SVGPathSegList(impl->normalizedPathSegList());
 }
 
 SVGPathSegList SVGAnimatedPathData::animatedPathSegList() const
 {
-	if(!impl) return SVGPathSegList(0);
+	if(!impl) return SVGPathSegList(nullptr);
 	return SVGPathSegList(impl->animatedPathSegList());
 }
 
 SVGPathSegList SVGAnimatedPathData::animatedNormalizedPathSegList() const
 {
-	if(!impl) return SVGPathSegList(0);
+	if(!impl) return SVGPathSegList(nullptr);
 	return SVGPathSegList(impl->animatedNormalizedPathSegList());
 }
diff --git a/ksvg/dom/SVGAnimatedPoints.cpp b/ksvg/dom/SVGAnimatedPoints.cpp
index 2b91f989..a17392f6 100644
--- a/ksvg/dom/SVGAnimatedPoints.cpp
+++ b/ksvg/dom/SVGAnimatedPoints.cpp
@@ -30,7 +30,7 @@ SVGAnimatedPoints::SVGAnimatedPoints()
 	impl->ref();
 }
 
-SVGAnimatedPoints::SVGAnimatedPoints(const SVGAnimatedPoints &other) : impl(0)
+SVGAnimatedPoints::SVGAnimatedPoints(const SVGAnimatedPoints &other) : impl(nullptr)
 {
 	(*this) = other;;
 }
@@ -66,12 +66,12 @@ SVGAnimatedPoints::~SVGAnimatedPoints()
 
 SVGPointList SVGAnimatedPoints::points() const
 {
-	if(!impl) return SVGPointList(0);
+	if(!impl) return SVGPointList(nullptr);
 	return SVGPointList(impl->points());
 }
 
 SVGPointList SVGAnimatedPoints::animatedPoints() const
 {
-	if(!impl) return SVGPointList(0);
+	if(!impl) return SVGPointList(nullptr);
 	return SVGPointList(impl->animatedPoints());
 }
diff --git a/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp b/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp
index 2f3d3e17..5c11501b 100644
--- a/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp
+++ b/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp
@@ -30,7 +30,7 @@ SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio()
 	impl->ref();
 }
 
-SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio(const SVGAnimatedPreserveAspectRatio &other) : impl(0)
+SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio(const SVGAnimatedPreserveAspectRatio &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -66,12 +66,12 @@ SVGAnimatedPreserveAspectRatio::~SVGAnimatedPreserveAspectRatio()
 
 SVGPreserveAspectRatio SVGAnimatedPreserveAspectRatio::baseVal() const
 {
-	if(!impl) return SVGPreserveAspectRatio(0);
+	if(!impl) return SVGPreserveAspectRatio(nullptr);
 	return SVGPreserveAspectRatio(impl->baseVal());
 }
 
 SVGPreserveAspectRatio SVGAnimatedPreserveAspectRatio::animVal() const
 {
-	if(!impl) return SVGPreserveAspectRatio(0);
+	if(!impl) return SVGPreserveAspectRatio(nullptr);
 	return SVGPreserveAspectRatio(impl->animVal());
 }
diff --git a/ksvg/dom/SVGAnimatedRect.cpp b/ksvg/dom/SVGAnimatedRect.cpp
index 29cf0518..ce6c3be6 100644
--- a/ksvg/dom/SVGAnimatedRect.cpp
+++ b/ksvg/dom/SVGAnimatedRect.cpp
@@ -30,7 +30,7 @@ SVGAnimatedRect::SVGAnimatedRect()
 	impl->ref();
 }
 
-SVGAnimatedRect::SVGAnimatedRect(const SVGAnimatedRect &other) : impl(0)
+SVGAnimatedRect::SVGAnimatedRect(const SVGAnimatedRect &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -66,12 +66,12 @@ SVGAnimatedRect::~SVGAnimatedRect()
 
 SVGRect SVGAnimatedRect::baseVal() const
 {
-	if(!impl) return SVGRect(0);
+	if(!impl) return SVGRect(nullptr);
 	return SVGRect(impl->baseVal());
 }
 
 SVGRect SVGAnimatedRect::animVal() const
 {
-	if(!impl) return SVGRect(0);
+	if(!impl) return SVGRect(nullptr);
 	return SVGRect(impl->animVal());
 }
diff --git a/ksvg/dom/SVGAnimatedString.cpp b/ksvg/dom/SVGAnimatedString.cpp
index ba69c6e1..7d869390 100644
--- a/ksvg/dom/SVGAnimatedString.cpp
+++ b/ksvg/dom/SVGAnimatedString.cpp
@@ -29,7 +29,7 @@ SVGAnimatedString::SVGAnimatedString()
 	impl->ref();
 }
 
-SVGAnimatedString::SVGAnimatedString(const SVGAnimatedString &other) : impl(0)
+SVGAnimatedString::SVGAnimatedString(const SVGAnimatedString &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGAnimatedTransformList.cpp b/ksvg/dom/SVGAnimatedTransformList.cpp
index 7a8cbe49..dc1562ef 100644
--- a/ksvg/dom/SVGAnimatedTransformList.cpp
+++ b/ksvg/dom/SVGAnimatedTransformList.cpp
@@ -30,7 +30,7 @@ SVGAnimatedTransformList::SVGAnimatedTransformList()
 	impl->ref();
 }
 
-SVGAnimatedTransformList::SVGAnimatedTransformList(const SVGAnimatedTransformList &other) : impl(0)
+SVGAnimatedTransformList::SVGAnimatedTransformList(const SVGAnimatedTransformList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -66,12 +66,12 @@ SVGAnimatedTransformList::~SVGAnimatedTransformList()
 
 SVGTransformList SVGAnimatedTransformList::baseVal() const
 {
-	if(!impl) return SVGTransformList(0);
+	if(!impl) return SVGTransformList(nullptr);
 	return SVGTransformList(impl->baseVal());
 }
 
 SVGTransformList SVGAnimatedTransformList::animVal() const
 {
-	if(!impl) return SVGTransformList(0);
+	if(!impl) return SVGTransformList(nullptr);
 	return SVGTransformList(impl->animVal());
 }
diff --git a/ksvg/dom/SVGAnimationElement.cpp b/ksvg/dom/SVGAnimationElement.cpp
index 0cc1ce3b..b902db83 100644
--- a/ksvg/dom/SVGAnimationElement.cpp
+++ b/ksvg/dom/SVGAnimationElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGAnimationElement::SVGAnimationElement() : SVGElement(), SVGTests(), SVGExternalResourcesRequired()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGAnimationElement::SVGAnimationElement(const SVGAnimationElement &other) : SVGElement(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(0) 
+SVGAnimationElement::SVGAnimationElement(const SVGAnimationElement &other) : SVGElement(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -68,7 +68,7 @@ SVGAnimationElement::~SVGAnimationElement()
 
 SVGElement SVGAnimationElement::targetElement() const
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return SVGElement(impl->targetElement());
 }
 
diff --git a/ksvg/dom/SVGCSSRule.cpp b/ksvg/dom/SVGCSSRule.cpp
index 0cb02c97..27bad91f 100644
--- a/ksvg/dom/SVGCSSRule.cpp
+++ b/ksvg/dom/SVGCSSRule.cpp
@@ -29,7 +29,7 @@ SVGCSSRule::SVGCSSRule() //: css::CSSRule()
 	impl->ref();
 }
 
-SVGCSSRule::SVGCSSRule(const SVGCSSRule &other) : /*css::CSSRule(),*/ impl(0)
+SVGCSSRule::SVGCSSRule(const SVGCSSRule &other) : /*css::CSSRule(),*/ impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGCircleElement.cpp b/ksvg/dom/SVGCircleElement.cpp
index 746160e6..c513f428 100644
--- a/ksvg/dom/SVGCircleElement.cpp
+++ b/ksvg/dom/SVGCircleElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGCircleElement::SVGCircleElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGCircleElement::SVGCircleElement(const SVGCircleElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGCircleElement::SVGCircleElement(const SVGCircleElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,18 +73,18 @@ SVGCircleElement::~SVGCircleElement()
 
 SVGAnimatedLength SVGCircleElement::cx()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->cx());
 }
 
 SVGAnimatedLength SVGCircleElement::cy()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->cy());
 }
 
 SVGAnimatedLength SVGCircleElement::r()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->r());
 }
diff --git a/ksvg/dom/SVGClipPathElement.cpp b/ksvg/dom/SVGClipPathElement.cpp
index e6c66f7f..2eff77c9 100644
--- a/ksvg/dom/SVGClipPathElement.cpp
+++ b/ksvg/dom/SVGClipPathElement.cpp
@@ -26,7 +26,7 @@ using namespace KSVG;
 
 SVGClipPathElement::SVGClipPathElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
 SVGClipPathElement::SVGClipPathElement(const SVGClipPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other)
@@ -72,6 +72,6 @@ SVGClipPathElement::~SVGClipPathElement()
 
 SVGAnimatedEnumeration SVGClipPathElement::clipPathUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->clipPathUnits());
 }
diff --git a/ksvg/dom/SVGColor.cpp b/ksvg/dom/SVGColor.cpp
index 2a7947ab..1d846695 100644
--- a/ksvg/dom/SVGColor.cpp
+++ b/ksvg/dom/SVGColor.cpp
@@ -27,11 +27,11 @@ using namespace KSVG;
 SVGColor::SVGColor()
 {
 	// FIXME: no icc color support...
-	impl = new SVGColorImpl(0);
+	impl = new SVGColorImpl(nullptr);
 	impl->ref();
 }
 
-SVGColor::SVGColor(const SVGColor &other) : impl(0)
+SVGColor::SVGColor(const SVGColor &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGColorProfileElement.cpp b/ksvg/dom/SVGColorProfileElement.cpp
index fa86f4f5..db3f1c79 100644
--- a/ksvg/dom/SVGColorProfileElement.cpp
+++ b/ksvg/dom/SVGColorProfileElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGColorProfileElement::SVGColorProfileElement() : SVGElement(), SVGURIReference()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGColorProfileElement::SVGColorProfileElement(const SVGColorProfileElement &other) : SVGElement(other), SVGURIReference(other), impl(0)
+SVGColorProfileElement::SVGColorProfileElement(const SVGColorProfileElement &other) : SVGElement(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGColorProfileRule.cpp b/ksvg/dom/SVGColorProfileRule.cpp
index 0a2da253..bab1d334 100644
--- a/ksvg/dom/SVGColorProfileRule.cpp
+++ b/ksvg/dom/SVGColorProfileRule.cpp
@@ -30,7 +30,7 @@ SVGColorProfileRule::SVGColorProfileRule() : SVGCSSRule()
 	impl->ref();
 }
 
-SVGColorProfileRule::SVGColorProfileRule(const SVGColorProfileRule &other) : SVGCSSRule(), impl(0)
+SVGColorProfileRule::SVGColorProfileRule(const SVGColorProfileRule &other) : SVGCSSRule(), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGComponentTransferFunctionElement.cpp b/ksvg/dom/SVGComponentTransferFunctionElement.cpp
index 66639416..a1438608 100644
--- a/ksvg/dom/SVGComponentTransferFunctionElement.cpp
+++ b/ksvg/dom/SVGComponentTransferFunctionElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const SVGComponentTransferFunctionElement &other) : SVGElement(other), impl(0)
+SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const SVGComponentTransferFunctionElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,42 +69,42 @@ SVGComponentTransferFunctionElement::~SVGComponentTransferFunctionElement()
 
 SVGAnimatedEnumeration SVGComponentTransferFunctionElement::type() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->type());
 }
 
 SVGAnimatedNumberList SVGComponentTransferFunctionElement::tableValues() const
 {
-	if(!impl) return SVGAnimatedNumberList(0);
+	if(!impl) return SVGAnimatedNumberList(nullptr);
 	return SVGAnimatedNumberList(impl->tableValues());
 }
 
 SVGAnimatedNumber SVGComponentTransferFunctionElement::slope() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->slope());
 }
 
 SVGAnimatedNumber SVGComponentTransferFunctionElement::intercept() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->intercept());
 }
 
 SVGAnimatedNumber SVGComponentTransferFunctionElement::amplitude() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->amplitude());
 }
 
 SVGAnimatedNumber SVGComponentTransferFunctionElement::exponent() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->exponent());
 }
 
 SVGAnimatedNumber SVGComponentTransferFunctionElement::offset() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->offset());
 }
diff --git a/ksvg/dom/SVGCursorElement.cpp b/ksvg/dom/SVGCursorElement.cpp
index 9b882405..f1ac800d 100644
--- a/ksvg/dom/SVGCursorElement.cpp
+++ b/ksvg/dom/SVGCursorElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGCursorElement::SVGCursorElement() : SVGElement(), SVGURIReference(), SVGTests(), SVGExternalResourcesRequired()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGCursorElement::SVGCursorElement(const SVGCursorElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(0)
+SVGCursorElement::SVGCursorElement(const SVGCursorElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,12 +70,12 @@ SVGCursorElement::~SVGCursorElement()
 
 SVGAnimatedLength SVGCursorElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGCursorElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
diff --git a/ksvg/dom/SVGDefinitionSrcElement.cpp b/ksvg/dom/SVGDefinitionSrcElement.cpp
index 6a965215..aa736612 100644
--- a/ksvg/dom/SVGDefinitionSrcElement.cpp
+++ b/ksvg/dom/SVGDefinitionSrcElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGDefinitionSrcElement::SVGDefinitionSrcElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGDefinitionSrcElement::SVGDefinitionSrcElement(const SVGDefinitionSrcElement &other) : SVGElement(other), impl(0)
+SVGDefinitionSrcElement::SVGDefinitionSrcElement(const SVGDefinitionSrcElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGDefsElement.cpp b/ksvg/dom/SVGDefsElement.cpp
index 9382286e..b61154e7 100644
--- a/ksvg/dom/SVGDefsElement.cpp
+++ b/ksvg/dom/SVGDefsElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGDefsElement::SVGDefsElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGDefsElement::SVGDefsElement(const SVGDefsElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGDefsElement::SVGDefsElement(const SVGDefsElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGDescElement.cpp b/ksvg/dom/SVGDescElement.cpp
index 35f77c76..9017003f 100644
--- a/ksvg/dom/SVGDescElement.cpp
+++ b/ksvg/dom/SVGDescElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGDescElement::SVGDescElement() : SVGElement(), SVGLangSpace(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGDescElement::SVGDescElement(const SVGDescElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(0)
+SVGDescElement::SVGDescElement(const SVGDescElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGDocument.cpp b/ksvg/dom/SVGDocument.cpp
index f9d46968..d8b572b9 100644
--- a/ksvg/dom/SVGDocument.cpp
+++ b/ksvg/dom/SVGDocument.cpp
@@ -33,7 +33,7 @@ SVGDocument::SVGDocument() : DOM::Document(*(new SVGDocumentImpl()))
 	impl->ref();
 }
 
-SVGDocument::SVGDocument(const SVGDocument &other) : DOM::Document(other), impl(0)
+SVGDocument::SVGDocument(const SVGDocument &other) : DOM::Document(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -102,13 +102,13 @@ SVGWindow SVGDocument::window() const
 
 SVGSVGElement SVGDocument::rootElement() const
 {
-	if(!impl) return SVGSVGElement(0);
+	if(!impl) return SVGSVGElement(nullptr);
 	return SVGSVGElement(impl->rootElement());
 }
 
 SVGElement SVGDocument::createElement(const DOM::DOMString &tagName)
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	
 	DOM::Element impl = DOM::Document::createElement(tagName);
 	return SVGElement(SVGDocumentImpl::createElement(tagName, impl));
@@ -116,7 +116,7 @@ SVGElement SVGDocument::createElement(const DOM::DOMString &tagName)
 
 SVGElement SVGDocument::createElementNS(const DOM::DOMString &namespaceURI, const DOM::DOMString &qualifiedName)
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	
 	DOM::Element impl = DOM::Document::createElementNS(namespaceURI, qualifiedName);
 	return SVGElement(SVGDocumentImpl::createElement(qualifiedName, impl));
@@ -131,6 +131,6 @@ KJS::Object SVGDocument::globalJSObject()
 
 KJS::ExecState *SVGDocument::globalJSExec()
 {
-	if(!impl) return 0;
+	if(!impl) return nullptr;
 	return impl->ecmaEngine()->globalExec();
 }
diff --git a/ksvg/dom/SVGElement.cpp b/ksvg/dom/SVGElement.cpp
index e753bac3..27a2b482 100644
--- a/ksvg/dom/SVGElement.cpp
+++ b/ksvg/dom/SVGElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 // There is no way to create a SVGElement this way! Use SVGDocument.
 SVGElement::SVGElement() : DOM::Element()
 {
-	impl = 0; // new SVGElementImpl(ownerDocument().createElement().handle());
+	impl = nullptr; // new SVGElementImpl(ownerDocument().createElement().handle());
 }
 
-SVGElement::SVGElement(const SVGElement &other) : DOM::Element(other), impl(0)
+SVGElement::SVGElement(const SVGElement &other) : DOM::Element(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -93,13 +93,13 @@ DOM::DOMString SVGElement::xmlbase()
 
 SVGSVGElement SVGElement::ownerSVGElement()
 {
-	if(!impl) return SVGSVGElement(0);
+	if(!impl) return SVGSVGElement(nullptr);
 	return impl->ownerSVGElement();
 }
 
 SVGElement SVGElement::viewportElement()
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return impl->viewportElement();
 }
 
diff --git a/ksvg/dom/SVGElementInstance.cpp b/ksvg/dom/SVGElementInstance.cpp
index 6af2d11e..3037074d 100644
--- a/ksvg/dom/SVGElementInstance.cpp
+++ b/ksvg/dom/SVGElementInstance.cpp
@@ -32,7 +32,7 @@ SVGElementInstance::SVGElementInstance()
 	impl->ref();
 }
 
-SVGElementInstance::SVGElementInstance(const SVGElementInstance &other) : impl(0)
+SVGElementInstance::SVGElementInstance(const SVGElementInstance &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -68,48 +68,48 @@ SVGElementInstance::~SVGElementInstance()
 
 SVGElement SVGElementInstance::correspondingElement() const
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return SVGElement(impl->correspondingElement());
 }
 
 SVGUseElement SVGElementInstance::correspondingUseElement() const
 {
-	if(!impl) return SVGUseElement(0);
+	if(!impl) return SVGUseElement(nullptr);
 	return SVGUseElement(impl->correspondingUseElement());
 }
 
 SVGElementInstance SVGElementInstance::parentNode() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return SVGElementInstance(impl->parentNode());
 }
 
 SVGElementInstanceList SVGElementInstance::childNodes() const
 {
-	if(!impl) return SVGElementInstanceList(0);
+	if(!impl) return SVGElementInstanceList(nullptr);
 	return SVGElementInstanceList(impl->childNodes());
 }
 
 SVGElementInstance SVGElementInstance::firstChild() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return SVGElementInstance(impl->firstChild());
 }
 
 SVGElementInstance SVGElementInstance::lastChild() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return SVGElementInstance(impl->lastChild());
 }
 
 SVGElementInstance SVGElementInstance::previousSibling() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return SVGElementInstance(impl->previousSibling());
 }
 
 SVGElementInstance SVGElementInstance::nextSibling() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return SVGElementInstance(impl->nextSibling());
 }
diff --git a/ksvg/dom/SVGElementInstanceList.cpp b/ksvg/dom/SVGElementInstanceList.cpp
index 6b4fd80e..3dbc555c 100644
--- a/ksvg/dom/SVGElementInstanceList.cpp
+++ b/ksvg/dom/SVGElementInstanceList.cpp
@@ -30,7 +30,7 @@ SVGElementInstanceList::SVGElementInstanceList()
 	impl->ref();
 }
 
-SVGElementInstanceList::SVGElementInstanceList(const SVGElementInstanceList &other) : impl(0)
+SVGElementInstanceList::SVGElementInstanceList(const SVGElementInstanceList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -72,6 +72,6 @@ unsigned long SVGElementInstanceList::length() const
 
 SVGElementInstance SVGElementInstanceList::item(unsigned long index)
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return SVGElementInstance(impl->item(index));
 }
diff --git a/ksvg/dom/SVGEllipseElement.cpp b/ksvg/dom/SVGEllipseElement.cpp
index 36d2449e..2be3307f 100644
--- a/ksvg/dom/SVGEllipseElement.cpp
+++ b/ksvg/dom/SVGEllipseElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGEllipseElement::SVGEllipseElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGEllipseElement::SVGEllipseElement(const SVGEllipseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGEllipseElement::SVGEllipseElement(const SVGEllipseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,24 +73,24 @@ SVGEllipseElement::~SVGEllipseElement()
 
 SVGAnimatedLength SVGEllipseElement::cx()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->cx());
 }
 
 SVGAnimatedLength SVGEllipseElement::cy()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->cy());
 }
 
 SVGAnimatedLength SVGEllipseElement::rx()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->rx());
 }
 
 SVGAnimatedLength SVGEllipseElement::ry()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->ry());
 }
diff --git a/ksvg/dom/SVGEvent.cpp b/ksvg/dom/SVGEvent.cpp
index 67cc8ddf..0f6aa461 100644
--- a/ksvg/dom/SVGEvent.cpp
+++ b/ksvg/dom/SVGEvent.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGEvent::SVGEvent() : DOM::Event()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGEvent::SVGEvent(const SVGEvent &other) : DOM::Event(other), impl(0)
+SVGEvent::SVGEvent(const SVGEvent &other) : DOM::Event(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGExternalResourcesRequired.cpp b/ksvg/dom/SVGExternalResourcesRequired.cpp
index 189d72ee..1f87639c 100644
--- a/ksvg/dom/SVGExternalResourcesRequired.cpp
+++ b/ksvg/dom/SVGExternalResourcesRequired.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGExternalResourcesRequired::SVGExternalResourcesRequired()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGExternalResourcesRequired::SVGExternalResourcesRequired(const SVGExternalResourcesRequired &other) : impl(0)
+SVGExternalResourcesRequired::SVGExternalResourcesRequired(const SVGExternalResourcesRequired &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -58,6 +58,6 @@ SVGExternalResourcesRequired::~SVGExternalResourcesRequired()
 
 SVGAnimatedBoolean SVGExternalResourcesRequired::externalResourcesRequired() const
 {
-	if(!impl) return SVGAnimatedBoolean(0);
+	if(!impl) return SVGAnimatedBoolean(nullptr);
 	return SVGAnimatedBoolean(impl->externalResourcesRequired());
 }
diff --git a/ksvg/dom/SVGFEBlendElement.cpp b/ksvg/dom/SVGFEBlendElement.cpp
index f0fe7b8b..256e8298 100644
--- a/ksvg/dom/SVGFEBlendElement.cpp
+++ b/ksvg/dom/SVGFEBlendElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGFEBlendElement::SVGFEBlendElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEBlendElement::SVGFEBlendElement(const SVGFEBlendElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEBlendElement::SVGFEBlendElement(const SVGFEBlendElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,18 +69,18 @@ SVGFEBlendElement::~SVGFEBlendElement()
 
 SVGAnimatedString SVGFEBlendElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedString SVGFEBlendElement::in2() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in2());
 }
 
 SVGAnimatedEnumeration SVGFEBlendElement::mode() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->mode());
 }
diff --git a/ksvg/dom/SVGFEColorMatrixElement.cpp b/ksvg/dom/SVGFEColorMatrixElement.cpp
index 5c4c5104..09157ac4 100644
--- a/ksvg/dom/SVGFEColorMatrixElement.cpp
+++ b/ksvg/dom/SVGFEColorMatrixElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGFEColorMatrixElement::SVGFEColorMatrixElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEColorMatrixElement::SVGFEColorMatrixElement(const SVGFEColorMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEColorMatrixElement::SVGFEColorMatrixElement(const SVGFEColorMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,18 +70,18 @@ SVGFEColorMatrixElement::~SVGFEColorMatrixElement()
 
 SVGAnimatedString SVGFEColorMatrixElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedEnumeration SVGFEColorMatrixElement::type() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->type());
 }
 
 SVGAnimatedNumberList SVGFEColorMatrixElement::values() const
 {
-	if(!impl) return SVGAnimatedNumberList(0);
+	if(!impl) return SVGAnimatedNumberList(nullptr);
 	return SVGAnimatedNumberList(impl->values());
 }
diff --git a/ksvg/dom/SVGFEComponentTransferElement.cpp b/ksvg/dom/SVGFEComponentTransferElement.cpp
index bc96a48d..3201c4b8 100644
--- a/ksvg/dom/SVGFEComponentTransferElement.cpp
+++ b/ksvg/dom/SVGFEComponentTransferElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFEComponentTransferElement::SVGFEComponentTransferElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEComponentTransferElement::SVGFEComponentTransferElement(const SVGFEComponentTransferElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEComponentTransferElement::SVGFEComponentTransferElement(const SVGFEComponentTransferElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -68,6 +68,6 @@ SVGFEComponentTransferElement::~SVGFEComponentTransferElement()
 
 SVGAnimatedString SVGFEComponentTransferElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
diff --git a/ksvg/dom/SVGFECompositeElement.cpp b/ksvg/dom/SVGFECompositeElement.cpp
index b7ff69f5..b10056dc 100644
--- a/ksvg/dom/SVGFECompositeElement.cpp
+++ b/ksvg/dom/SVGFECompositeElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGFECompositeElement::SVGFECompositeElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFECompositeElement::SVGFECompositeElement(const SVGFECompositeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFECompositeElement::SVGFECompositeElement(const SVGFECompositeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,42 +70,42 @@ SVGFECompositeElement::~SVGFECompositeElement()
 
 SVGAnimatedString SVGFECompositeElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedString SVGFECompositeElement::in2() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in2());
 }
 
 SVGAnimatedEnumeration SVGFECompositeElement::Operator() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->Operator());
 }
 
 SVGAnimatedNumber SVGFECompositeElement::k1() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->k1());
 }
 
 SVGAnimatedNumber SVGFECompositeElement::k2() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->k2());
 }
 
 SVGAnimatedNumber SVGFECompositeElement::k3() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->k3());
 }
 
 SVGAnimatedNumber SVGFECompositeElement::k4() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->k4());
 }
diff --git a/ksvg/dom/SVGFEConvolveMatrixElement.cpp b/ksvg/dom/SVGFEConvolveMatrixElement.cpp
index 7f66b8b4..eea52593 100644
--- a/ksvg/dom/SVGFEConvolveMatrixElement.cpp
+++ b/ksvg/dom/SVGFEConvolveMatrixElement.cpp
@@ -31,10 +31,10 @@ using namespace KSVG;
 
 SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const SVGFEConvolveMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const SVGFEConvolveMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,66 +73,66 @@ SVGFEConvolveMatrixElement::~SVGFEConvolveMatrixElement()
 
 SVGAnimatedInteger SVGFEConvolveMatrixElement::orderX() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->orderX());
 }
 
 SVGAnimatedInteger SVGFEConvolveMatrixElement::orderY() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->orderY());
 }
 
 SVGAnimatedNumberList SVGFEConvolveMatrixElement::kernelMatrix() const
 {
-	if(!impl) return SVGAnimatedNumberList(0);
+	if(!impl) return SVGAnimatedNumberList(nullptr);
 	return SVGAnimatedNumberList(impl->kernelMatrix());
 }
 
 SVGAnimatedNumber SVGFEConvolveMatrixElement::divisor() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->divisor());
 }
 
 SVGAnimatedNumber SVGFEConvolveMatrixElement::bias() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->bias());
 }
 
 SVGAnimatedInteger SVGFEConvolveMatrixElement::targetX() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->targetX());
 }
 
 SVGAnimatedInteger SVGFEConvolveMatrixElement::targetY() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->targetY());
 }
 
 SVGAnimatedEnumeration SVGFEConvolveMatrixElement::edgeMode() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->edgeMode());
 }
 
 SVGAnimatedLength SVGFEConvolveMatrixElement::kernelUnitLengthX() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->kernelUnitLengthX());
 }
 
 SVGAnimatedLength SVGFEConvolveMatrixElement::kernelUnitLengthY() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->kernelUnitLengthY());
 }
 
 SVGAnimatedBoolean SVGFEConvolveMatrixElement::preserveAlpha() const
 {
-	if(!impl) return SVGAnimatedBoolean(0);
+	if(!impl) return SVGAnimatedBoolean(nullptr);
 	return SVGAnimatedBoolean(impl->preserveAlpha());
 }
diff --git a/ksvg/dom/SVGFEDiffuseLightingElement.cpp b/ksvg/dom/SVGFEDiffuseLightingElement.cpp
index 6e084f25..0b308123 100644
--- a/ksvg/dom/SVGFEDiffuseLightingElement.cpp
+++ b/ksvg/dom/SVGFEDiffuseLightingElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const SVGFEDiffuseLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const SVGFEDiffuseLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,13 +69,13 @@ SVGFEDiffuseLightingElement::~SVGFEDiffuseLightingElement()
 
 SVGAnimatedString SVGFEDiffuseLightingElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedNumber SVGFEDiffuseLightingElement::surfaceScale() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->surfaceScale());
 }
 
diff --git a/ksvg/dom/SVGFEDisplacementMapElement.cpp b/ksvg/dom/SVGFEDisplacementMapElement.cpp
index 9bb4938e..8e810a04 100644
--- a/ksvg/dom/SVGFEDisplacementMapElement.cpp
+++ b/ksvg/dom/SVGFEDisplacementMapElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGFEDisplacementMapElement::SVGFEDisplacementMapElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const SVGFEDisplacementMapElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const SVGFEDisplacementMapElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,30 +70,30 @@ SVGFEDisplacementMapElement::~SVGFEDisplacementMapElement()
 
 SVGAnimatedString SVGFEDisplacementMapElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedString SVGFEDisplacementMapElement::in2() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in2());
 }
 
 SVGAnimatedNumber SVGFEDisplacementMapElement::scale() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->scale());
 }
 
 SVGAnimatedEnumeration SVGFEDisplacementMapElement::xChannelSelector() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->xChannelSelector());
 }
 
 SVGAnimatedEnumeration SVGFEDisplacementMapElement::yChannelSelector() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->yChannelSelector());
 }
diff --git a/ksvg/dom/SVGFEDistantLightElement.cpp b/ksvg/dom/SVGFEDistantLightElement.cpp
index 5e5f4f30..563e9c8b 100644
--- a/ksvg/dom/SVGFEDistantLightElement.cpp
+++ b/ksvg/dom/SVGFEDistantLightElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFEDistantLightElement::SVGFEDistantLightElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEDistantLightElement::SVGFEDistantLightElement(const SVGFEDistantLightElement &other) : SVGElement(other), impl(0)
+SVGFEDistantLightElement::SVGFEDistantLightElement(const SVGFEDistantLightElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -67,12 +67,12 @@ SVGFEDistantLightElement::~SVGFEDistantLightElement()
 
 SVGAnimatedNumber SVGFEDistantLightElement::azimuth() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->azimuth());
 }
 
 SVGAnimatedNumber SVGFEDistantLightElement::elevation() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->elevation());
 }
diff --git a/ksvg/dom/SVGFEFloodElement.cpp b/ksvg/dom/SVGFEFloodElement.cpp
index 0689cb10..64a03016 100644
--- a/ksvg/dom/SVGFEFloodElement.cpp
+++ b/ksvg/dom/SVGFEFloodElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFEFloodElement::SVGFEFloodElement() : SVGElement(), SVGStylable(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEFloodElement::SVGFEFloodElement(const SVGFEFloodElement &other) : SVGElement(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEFloodElement::SVGFEFloodElement(const SVGFEFloodElement &other) : SVGElement(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,6 +69,6 @@ SVGFEFloodElement::~SVGFEFloodElement()
 
 SVGAnimatedString SVGFEFloodElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
diff --git a/ksvg/dom/SVGFEFuncAElement.cpp b/ksvg/dom/SVGFEFuncAElement.cpp
index 00db637e..02b50a6d 100644
--- a/ksvg/dom/SVGFEFuncAElement.cpp
+++ b/ksvg/dom/SVGFEFuncAElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFEFuncAElement::SVGFEFuncAElement() : SVGComponentTransferFunctionElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEFuncAElement::SVGFEFuncAElement(const SVGFEFuncAElement &other) : SVGComponentTransferFunctionElement(other), impl(0)
+SVGFEFuncAElement::SVGFEFuncAElement(const SVGFEFuncAElement &other) : SVGComponentTransferFunctionElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFEFuncBElement.cpp b/ksvg/dom/SVGFEFuncBElement.cpp
index 01e060f3..8914c0b4 100644
--- a/ksvg/dom/SVGFEFuncBElement.cpp
+++ b/ksvg/dom/SVGFEFuncBElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFEFuncBElement::SVGFEFuncBElement() : SVGComponentTransferFunctionElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEFuncBElement::SVGFEFuncBElement(const SVGFEFuncBElement &other) : SVGComponentTransferFunctionElement(other), impl(0)
+SVGFEFuncBElement::SVGFEFuncBElement(const SVGFEFuncBElement &other) : SVGComponentTransferFunctionElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFEFuncGElement.cpp b/ksvg/dom/SVGFEFuncGElement.cpp
index c4af7f36..dbff2e8f 100644
--- a/ksvg/dom/SVGFEFuncGElement.cpp
+++ b/ksvg/dom/SVGFEFuncGElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFEFuncGElement::SVGFEFuncGElement() : SVGComponentTransferFunctionElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEFuncGElement::SVGFEFuncGElement(const SVGFEFuncGElement &other) : SVGComponentTransferFunctionElement(other), impl(0)
+SVGFEFuncGElement::SVGFEFuncGElement(const SVGFEFuncGElement &other) : SVGComponentTransferFunctionElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFEFuncRElement.cpp b/ksvg/dom/SVGFEFuncRElement.cpp
index 59b87ea2..bee81a74 100644
--- a/ksvg/dom/SVGFEFuncRElement.cpp
+++ b/ksvg/dom/SVGFEFuncRElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFEFuncRElement::SVGFEFuncRElement() : SVGComponentTransferFunctionElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEFuncRElement::SVGFEFuncRElement(const SVGFEFuncRElement &other) : SVGComponentTransferFunctionElement(other), impl(0)
+SVGFEFuncRElement::SVGFEFuncRElement(const SVGFEFuncRElement &other) : SVGComponentTransferFunctionElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFEGaussianBlurElement.cpp b/ksvg/dom/SVGFEGaussianBlurElement.cpp
index b3b9d9f7..5fd5e634 100644
--- a/ksvg/dom/SVGFEGaussianBlurElement.cpp
+++ b/ksvg/dom/SVGFEGaussianBlurElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGFEGaussianBlurElement::SVGFEGaussianBlurElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const SVGFEGaussianBlurElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const SVGFEGaussianBlurElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,19 +69,19 @@ SVGFEGaussianBlurElement::~SVGFEGaussianBlurElement()
 
 SVGAnimatedString SVGFEGaussianBlurElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedNumber SVGFEGaussianBlurElement::stdDeviationX() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->stdDeviationX());
 }
 
 SVGAnimatedNumber SVGFEGaussianBlurElement::stdDeviationY() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->stdDeviationY());
 }
 
diff --git a/ksvg/dom/SVGFEImageElement.cpp b/ksvg/dom/SVGFEImageElement.cpp
index d0708306..db8987a7 100644
--- a/ksvg/dom/SVGFEImageElement.cpp
+++ b/ksvg/dom/SVGFEImageElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFEImageElement::SVGFEImageElement() : SVGElement(), SVGURIReference(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEImageElement::SVGFEImageElement(const SVGFEImageElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEImageElement::SVGFEImageElement(const SVGFEImageElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFEMergeElement.cpp b/ksvg/dom/SVGFEMergeElement.cpp
index 7398bf9b..40aa14fd 100644
--- a/ksvg/dom/SVGFEMergeElement.cpp
+++ b/ksvg/dom/SVGFEMergeElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFEMergeElement::SVGFEMergeElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEMergeElement::SVGFEMergeElement(const SVGFEMergeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEMergeElement::SVGFEMergeElement(const SVGFEMergeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFEMergeNodeElement.cpp b/ksvg/dom/SVGFEMergeNodeElement.cpp
index 65d6b18d..79ecef50 100644
--- a/ksvg/dom/SVGFEMergeNodeElement.cpp
+++ b/ksvg/dom/SVGFEMergeNodeElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFEMergeNodeElement::SVGFEMergeNodeElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEMergeNodeElement::SVGFEMergeNodeElement(const SVGFEMergeNodeElement &other) : SVGElement(other), impl(0)
+SVGFEMergeNodeElement::SVGFEMergeNodeElement(const SVGFEMergeNodeElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -67,6 +67,6 @@ SVGFEMergeNodeElement::~SVGFEMergeNodeElement()
 
 SVGAnimatedString SVGFEMergeNodeElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
diff --git a/ksvg/dom/SVGFEMorphologyElement.cpp b/ksvg/dom/SVGFEMorphologyElement.cpp
index e6f2543a..05483f3c 100644
--- a/ksvg/dom/SVGFEMorphologyElement.cpp
+++ b/ksvg/dom/SVGFEMorphologyElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGFEMorphologyElement::SVGFEMorphologyElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEMorphologyElement::SVGFEMorphologyElement(const SVGFEMorphologyElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEMorphologyElement::SVGFEMorphologyElement(const SVGFEMorphologyElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,24 +70,24 @@ SVGFEMorphologyElement::~SVGFEMorphologyElement()
 
 SVGAnimatedString SVGFEMorphologyElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedEnumeration SVGFEMorphologyElement::Operator() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->Operator());
 }
 
 SVGAnimatedLength SVGFEMorphologyElement::radiusX() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->radiusX());
 }
 
 SVGAnimatedLength SVGFEMorphologyElement::radiusY() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->radiusY());
 }
diff --git a/ksvg/dom/SVGFEOffsetElement.cpp b/ksvg/dom/SVGFEOffsetElement.cpp
index bd9a94fd..f690395d 100644
--- a/ksvg/dom/SVGFEOffsetElement.cpp
+++ b/ksvg/dom/SVGFEOffsetElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGFEOffsetElement::SVGFEOffsetElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEOffsetElement::SVGFEOffsetElement(const SVGFEOffsetElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFEOffsetElement::SVGFEOffsetElement(const SVGFEOffsetElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,18 +69,18 @@ SVGFEOffsetElement::~SVGFEOffsetElement()
 
 SVGAnimatedString SVGFEOffsetElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedNumber SVGFEOffsetElement::dx() const
 {
-	if(!impl) return SVGAnimatedNumber(0); // FIXME
+	if(!impl) return SVGAnimatedNumber(nullptr); // FIXME
 	return SVGAnimatedNumber(impl->dx());
 }
 
 SVGAnimatedNumber SVGFEOffsetElement::dy() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->dy());
 }
diff --git a/ksvg/dom/SVGFEPointLightElement.cpp b/ksvg/dom/SVGFEPointLightElement.cpp
index 99028920..09dfc5af 100644
--- a/ksvg/dom/SVGFEPointLightElement.cpp
+++ b/ksvg/dom/SVGFEPointLightElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFEPointLightElement::SVGFEPointLightElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFEPointLightElement::SVGFEPointLightElement(const SVGFEPointLightElement &other) : SVGElement(other), impl(0)
+SVGFEPointLightElement::SVGFEPointLightElement(const SVGFEPointLightElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -67,18 +67,18 @@ SVGFEPointLightElement::~SVGFEPointLightElement()
 
 SVGAnimatedNumber SVGFEPointLightElement::x() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->x());
 }
 
 SVGAnimatedNumber SVGFEPointLightElement::y() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->y());
 }
 
 SVGAnimatedNumber SVGFEPointLightElement::z() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->z());
 }
diff --git a/ksvg/dom/SVGFESpecularLightingElement.cpp b/ksvg/dom/SVGFESpecularLightingElement.cpp
index cd4785dc..376946d9 100644
--- a/ksvg/dom/SVGFESpecularLightingElement.cpp
+++ b/ksvg/dom/SVGFESpecularLightingElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGFESpecularLightingElement::SVGFESpecularLightingElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFESpecularLightingElement::SVGFESpecularLightingElement(const SVGFESpecularLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFESpecularLightingElement::SVGFESpecularLightingElement(const SVGFESpecularLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -69,24 +69,24 @@ SVGFESpecularLightingElement::~SVGFESpecularLightingElement()
 
 SVGAnimatedString SVGFESpecularLightingElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
 
 SVGAnimatedNumber SVGFESpecularLightingElement::surfaceScale() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->surfaceScale());
 }
 
 SVGAnimatedNumber SVGFESpecularLightingElement::specularConstant() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->specularConstant());
 }
 
 SVGAnimatedNumber SVGFESpecularLightingElement::specularExponent() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->specularExponent());
 }
diff --git a/ksvg/dom/SVGFESpotLightElement.cpp b/ksvg/dom/SVGFESpotLightElement.cpp
index 15353880..5ec6783c 100644
--- a/ksvg/dom/SVGFESpotLightElement.cpp
+++ b/ksvg/dom/SVGFESpotLightElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFESpotLightElement::SVGFESpotLightElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFESpotLightElement::SVGFESpotLightElement(const SVGFESpotLightElement &other) : SVGElement(other), impl(0)
+SVGFESpotLightElement::SVGFESpotLightElement(const SVGFESpotLightElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -67,48 +67,48 @@ SVGFESpotLightElement::~SVGFESpotLightElement()
 
 SVGAnimatedNumber SVGFESpotLightElement::x() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->x());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::y() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->y());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::z() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->z());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::pointsAtX() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->pointsAtX());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::pointsAtY() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->pointsAtY());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::pointsAtZ() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->pointsAtZ());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::specularExponent() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->specularExponent());
 }
 
 SVGAnimatedNumber SVGFESpotLightElement::limitingConeAngle() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->limitingConeAngle());
 }
diff --git a/ksvg/dom/SVGFETileElement.cpp b/ksvg/dom/SVGFETileElement.cpp
index d88a4f2a..d4e139f4 100644
--- a/ksvg/dom/SVGFETileElement.cpp
+++ b/ksvg/dom/SVGFETileElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGFETileElement::SVGFETileElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFETileElement::SVGFETileElement(const SVGFETileElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFETileElement::SVGFETileElement(const SVGFETileElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -68,6 +68,6 @@ SVGFETileElement::~SVGFETileElement()
 
 SVGAnimatedString SVGFETileElement::in1() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->in1());
 }
diff --git a/ksvg/dom/SVGFETurbulenceElement.cpp b/ksvg/dom/SVGFETurbulenceElement.cpp
index 2f4fd5b8..42ea4ff9 100644
--- a/ksvg/dom/SVGFETurbulenceElement.cpp
+++ b/ksvg/dom/SVGFETurbulenceElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGFETurbulenceElement::SVGFETurbulenceElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFETurbulenceElement::SVGFETurbulenceElement(const SVGFETurbulenceElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0)
+SVGFETurbulenceElement::SVGFETurbulenceElement(const SVGFETurbulenceElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,36 +70,36 @@ SVGFETurbulenceElement::~SVGFETurbulenceElement()
 
 SVGAnimatedNumber SVGFETurbulenceElement::baseFrequencyX() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->baseFrequencyX());
 }
 
 SVGAnimatedNumber SVGFETurbulenceElement::baseFrequencyY() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->baseFrequencyY());
 }
 
 SVGAnimatedInteger SVGFETurbulenceElement::numOctaves() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->numOctaves());
 }
 
 SVGAnimatedNumber SVGFETurbulenceElement::seed() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->seed());
 }
 
 SVGAnimatedEnumeration SVGFETurbulenceElement::stitchTiles() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->stitchTiles());
 }
 
 SVGAnimatedEnumeration SVGFETurbulenceElement::type() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->type());
 }
diff --git a/ksvg/dom/SVGFilterElement.cpp b/ksvg/dom/SVGFilterElement.cpp
index f505252e..fe3c3155 100644
--- a/ksvg/dom/SVGFilterElement.cpp
+++ b/ksvg/dom/SVGFilterElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGFilterElement::SVGFilterElement() : SVGElement(), SVGURIReference(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFilterElement::SVGFilterElement(const SVGFilterElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(0)
+SVGFilterElement::SVGFilterElement(const SVGFilterElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,49 +73,49 @@ SVGFilterElement::~SVGFilterElement()
 
 SVGAnimatedEnumeration SVGFilterElement::filterUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->filterUnits());
 }
 
 SVGAnimatedEnumeration SVGFilterElement::primitiveUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->primitiveUnits());
 }
 
 SVGAnimatedLength SVGFilterElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGFilterElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGFilterElement::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGFilterElement::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
 
 SVGAnimatedInteger SVGFilterElement::filterResX() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->filterResX());
 }
 
 SVGAnimatedInteger SVGFilterElement::filterResY() const
 {
-	if(!impl) return SVGAnimatedInteger(0);
+	if(!impl) return SVGAnimatedInteger(nullptr);
 	return SVGAnimatedInteger(impl->filterResY());
 }
 
diff --git a/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp b/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp
index fd629054..8cb9e422 100644
--- a/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp
+++ b/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp
@@ -57,30 +57,30 @@ SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes()
 
 SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
 
 SVGAnimatedString SVGFilterPrimitiveStandardAttributes::result() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->result());
 }
diff --git a/ksvg/dom/SVGFitToViewBox.cpp b/ksvg/dom/SVGFitToViewBox.cpp
index 4f54e2b4..91d73169 100644
--- a/ksvg/dom/SVGFitToViewBox.cpp
+++ b/ksvg/dom/SVGFitToViewBox.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGFitToViewBox::SVGFitToViewBox()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFitToViewBox::SVGFitToViewBox(const SVGFitToViewBox &other) : impl(0)
+SVGFitToViewBox::SVGFitToViewBox(const SVGFitToViewBox &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -59,12 +59,12 @@ SVGFitToViewBox::~SVGFitToViewBox()
 
 SVGAnimatedRect SVGFitToViewBox::viewBox() const
 {
-	if(!impl) return SVGAnimatedRect(0);
+	if(!impl) return SVGAnimatedRect(nullptr);
 	return SVGAnimatedRect(impl->viewBox());
 }
 
 SVGAnimatedPreserveAspectRatio SVGFitToViewBox::preserveAspectRatio() const
 {
-	if(!impl) return SVGAnimatedPreserveAspectRatio(0);
+	if(!impl) return SVGAnimatedPreserveAspectRatio(nullptr);
 	return SVGAnimatedPreserveAspectRatio(impl->preserveAspectRatio());
 }
diff --git a/ksvg/dom/SVGFontElement.cpp b/ksvg/dom/SVGFontElement.cpp
index 30244c6f..3b5bd246 100644
--- a/ksvg/dom/SVGFontElement.cpp
+++ b/ksvg/dom/SVGFontElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFontElement::SVGFontElement() : SVGElement(), SVGExternalResourcesRequired(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFontElement::SVGFontElement(const SVGFontElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGStylable(other), impl(0)
+SVGFontElement::SVGFontElement(const SVGFontElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFontFaceElement.cpp b/ksvg/dom/SVGFontFaceElement.cpp
index f5c7a12a..89166b6d 100644
--- a/ksvg/dom/SVGFontFaceElement.cpp
+++ b/ksvg/dom/SVGFontFaceElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFontFaceElement::SVGFontFaceElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFontFaceElement::SVGFontFaceElement(const SVGFontFaceElement &other) : SVGElement(other), impl(0)
+SVGFontFaceElement::SVGFontFaceElement(const SVGFontFaceElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFontFaceFormatElement.cpp b/ksvg/dom/SVGFontFaceFormatElement.cpp
index ede5a248..03fead76 100644
--- a/ksvg/dom/SVGFontFaceFormatElement.cpp
+++ b/ksvg/dom/SVGFontFaceFormatElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFontFaceFormatElement::SVGFontFaceFormatElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFontFaceFormatElement::SVGFontFaceFormatElement(const SVGFontFaceFormatElement &other) : SVGElement(other), impl(0)
+SVGFontFaceFormatElement::SVGFontFaceFormatElement(const SVGFontFaceFormatElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFontFaceNameElement.cpp b/ksvg/dom/SVGFontFaceNameElement.cpp
index ce2413fd..369d451c 100644
--- a/ksvg/dom/SVGFontFaceNameElement.cpp
+++ b/ksvg/dom/SVGFontFaceNameElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFontFaceNameElement::SVGFontFaceNameElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFontFaceNameElement::SVGFontFaceNameElement(const SVGFontFaceNameElement &other) : SVGElement(other), impl(0)
+SVGFontFaceNameElement::SVGFontFaceNameElement(const SVGFontFaceNameElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFontFaceSrcElement.cpp b/ksvg/dom/SVGFontFaceSrcElement.cpp
index c34e7734..44527546 100644
--- a/ksvg/dom/SVGFontFaceSrcElement.cpp
+++ b/ksvg/dom/SVGFontFaceSrcElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFontFaceSrcElement::SVGFontFaceSrcElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFontFaceSrcElement::SVGFontFaceSrcElement(const SVGFontFaceSrcElement &other) : SVGElement(other), impl(0)
+SVGFontFaceSrcElement::SVGFontFaceSrcElement(const SVGFontFaceSrcElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGFontFaceUriElement.cpp b/ksvg/dom/SVGFontFaceUriElement.cpp
index 98a13d4d..f8a01cf7 100644
--- a/ksvg/dom/SVGFontFaceUriElement.cpp
+++ b/ksvg/dom/SVGFontFaceUriElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGFontFaceUriElement::SVGFontFaceUriElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGFontFaceUriElement::SVGFontFaceUriElement(const SVGFontFaceUriElement &other) : SVGElement(other), impl(0)
+SVGFontFaceUriElement::SVGFontFaceUriElement(const SVGFontFaceUriElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGForeignObjectElement.cpp b/ksvg/dom/SVGForeignObjectElement.cpp
index cd7ffad5..800d7b49 100644
--- a/ksvg/dom/SVGForeignObjectElement.cpp
+++ b/ksvg/dom/SVGForeignObjectElement.cpp
@@ -26,7 +26,7 @@ using namespace KSVG;
 
 SVGForeignObjectElement::SVGForeignObjectElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
 SVGForeignObjectElement::SVGForeignObjectElement(const SVGForeignObjectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other)
@@ -72,24 +72,24 @@ SVGForeignObjectElement::~SVGForeignObjectElement()
 
 SVGAnimatedLength SVGForeignObjectElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGForeignObjectElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGForeignObjectElement::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGForeignObjectElement::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
diff --git a/ksvg/dom/SVGGElement.cpp b/ksvg/dom/SVGGElement.cpp
index 6a6cfb96..684b29ec 100644
--- a/ksvg/dom/SVGGElement.cpp
+++ b/ksvg/dom/SVGGElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGGElement::SVGGElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGGElement::SVGGElement(const SVGGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGGElement::SVGGElement(const SVGGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGGlyphElement.cpp b/ksvg/dom/SVGGlyphElement.cpp
index 7f6f4ae4..2fc990ff 100644
--- a/ksvg/dom/SVGGlyphElement.cpp
+++ b/ksvg/dom/SVGGlyphElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGGlyphElement::SVGGlyphElement() : SVGElement(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGGlyphElement::SVGGlyphElement(const SVGGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(0)
+SVGGlyphElement::SVGGlyphElement(const SVGGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGGlyphRefElement.cpp b/ksvg/dom/SVGGlyphRefElement.cpp
index 5b1f8deb..b5d4adc7 100644
--- a/ksvg/dom/SVGGlyphRefElement.cpp
+++ b/ksvg/dom/SVGGlyphRefElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGGlyphRefElement::SVGGlyphRefElement() : SVGElement(), SVGURIReference(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGGlyphRefElement::SVGGlyphRefElement(const SVGGlyphRefElement &other) : SVGElement(other), SVGURIReference(other), SVGStylable(other), impl(0)
+SVGGlyphRefElement::SVGGlyphRefElement(const SVGGlyphRefElement &other) : SVGElement(other), SVGURIReference(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGGradientElement.cpp b/ksvg/dom/SVGGradientElement.cpp
index 895b6d8e..b90ab386 100644
--- a/ksvg/dom/SVGGradientElement.cpp
+++ b/ksvg/dom/SVGGradientElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGGradientElement::SVGGradientElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGGradientElement::SVGGradientElement(const SVGGradientElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(other), impl(0)
+SVGGradientElement::SVGGradientElement(const SVGGradientElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -61,18 +61,18 @@ SVGGradientElement::~SVGGradientElement()
 
 SVGAnimatedEnumeration SVGGradientElement::gradientUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->gradientUnits());
 }
 
 SVGAnimatedTransformList SVGGradientElement::gradientTransform() const
 {
-	if(!impl) return SVGAnimatedTransformList(0);
+	if(!impl) return SVGAnimatedTransformList(nullptr);
 	return SVGAnimatedTransformList(impl->gradientTransform());
 }
 
 SVGAnimatedEnumeration SVGGradientElement::spreadMethod() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->spreadMethod());
 }
diff --git a/ksvg/dom/SVGHKernElement.cpp b/ksvg/dom/SVGHKernElement.cpp
index ca8d32bf..ec6d034d 100644
--- a/ksvg/dom/SVGHKernElement.cpp
+++ b/ksvg/dom/SVGHKernElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGHKernElement::SVGHKernElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGHKernElement::SVGHKernElement(const SVGHKernElement &other) : SVGElement(other), impl(0)
+SVGHKernElement::SVGHKernElement(const SVGHKernElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGICCColor.cpp b/ksvg/dom/SVGICCColor.cpp
index 3baef1c1..dd857e7e 100644
--- a/ksvg/dom/SVGICCColor.cpp
+++ b/ksvg/dom/SVGICCColor.cpp
@@ -30,7 +30,7 @@ SVGICCColor::SVGICCColor()
 	impl->ref();
 }
 
-SVGICCColor::SVGICCColor(const SVGICCColor &other) : impl(0)
+SVGICCColor::SVGICCColor(const SVGICCColor &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -78,6 +78,6 @@ DOM::DOMString SVGICCColor::colorProfile() const
 
 SVGNumberList SVGICCColor::colors() const
 {
-	if(!impl) return SVGNumberList(0);
+	if(!impl) return SVGNumberList(nullptr);
 	return SVGNumberList(impl->colors());
 }
diff --git a/ksvg/dom/SVGImageElement.cpp b/ksvg/dom/SVGImageElement.cpp
index 2981abef..60915a30 100644
--- a/ksvg/dom/SVGImageElement.cpp
+++ b/ksvg/dom/SVGImageElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGImageElement::SVGImageElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGImageElement::SVGImageElement(const SVGImageElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0)
+SVGImageElement::SVGImageElement(const SVGImageElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -75,30 +75,30 @@ SVGImageElement::~SVGImageElement()
 
 SVGAnimatedLength SVGImageElement::x()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGImageElement::y()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGImageElement::width()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGImageElement::height()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
 
 SVGAnimatedPreserveAspectRatio SVGImageElement::preserveAspectRatio() const
 {
-	if(!impl) return SVGAnimatedPreserveAspectRatio(0);
+	if(!impl) return SVGAnimatedPreserveAspectRatio(nullptr);
 	return SVGAnimatedPreserveAspectRatio(impl->preserveAspectRatio());
 }
diff --git a/ksvg/dom/SVGLangSpace.cpp b/ksvg/dom/SVGLangSpace.cpp
index dc4e0cb3..e489d401 100644
--- a/ksvg/dom/SVGLangSpace.cpp
+++ b/ksvg/dom/SVGLangSpace.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGLangSpace::SVGLangSpace()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGLangSpace::SVGLangSpace(const SVGLangSpace &other) : impl(0)
+SVGLangSpace::SVGLangSpace(const SVGLangSpace &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGLength.cpp b/ksvg/dom/SVGLength.cpp
index 7d55252a..db4e3316 100644
--- a/ksvg/dom/SVGLength.cpp
+++ b/ksvg/dom/SVGLength.cpp
@@ -31,7 +31,7 @@ SVGLength::SVGLength()
 	impl->ref();
 }
 
-SVGLength::SVGLength(const SVGLength &other) : impl(0)
+SVGLength::SVGLength(const SVGLength &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGLengthList.cpp b/ksvg/dom/SVGLengthList.cpp
index 30f59d70..55375258 100644
--- a/ksvg/dom/SVGLengthList.cpp
+++ b/ksvg/dom/SVGLengthList.cpp
@@ -30,7 +30,7 @@ SVGLengthList::SVGLengthList()
 	impl->ref();
 }
 
-SVGLengthList::SVGLengthList(const SVGLengthList &other) : impl(0)
+SVGLengthList::SVGLengthList(const SVGLengthList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -78,36 +78,36 @@ void SVGLengthList::clear()
 
 SVGLength *SVGLengthList::initialize(SVGLength *newItem)
 {
-	if(!impl) return new SVGLength(0);
+	if(!impl) return new SVGLength(nullptr);
 	return new SVGLength(impl->initialize(newItem->handle()));
 }
 
 SVGLength *SVGLengthList::getItem(unsigned long index)
 {
-	if(!impl) return new SVGLength(0);
+	if(!impl) return new SVGLength(nullptr);
 	return new SVGLength(impl->getItem(index));
 }
 
 SVGLength *SVGLengthList::insertItemBefore(SVGLength *newItem, unsigned long index)
 {
-	if(!impl) return new SVGLength(0);
+	if(!impl) return new SVGLength(nullptr);
 	return new SVGLength(impl->insertItemBefore(newItem->handle(), index));
 }
 
 SVGLength *SVGLengthList::replaceItem(SVGLength *newItem, unsigned long index)
 {
-	if(!impl) return new SVGLength(0);
+	if(!impl) return new SVGLength(nullptr);
 	return new SVGLength(impl->replaceItem(newItem->handle(), index));
 }
 
 SVGLength *SVGLengthList::removeItem(unsigned long index)
 {
-	if(!impl) return new SVGLength(0);
+	if(!impl) return new SVGLength(nullptr);
 	return new SVGLength(impl->removeItem(index));
 }
 
 SVGLength *SVGLengthList::appendItem(SVGLength *newItem)
 {
-	if(!impl) return new SVGLength(0);
+	if(!impl) return new SVGLength(nullptr);
 	return new SVGLength(impl->appendItem(newItem->handle()));
 }
diff --git a/ksvg/dom/SVGLineElement.cpp b/ksvg/dom/SVGLineElement.cpp
index 918734ea..df3b6194 100644
--- a/ksvg/dom/SVGLineElement.cpp
+++ b/ksvg/dom/SVGLineElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGLineElement::SVGLineElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGLineElement::SVGLineElement(const SVGLineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGLineElement::SVGLineElement(const SVGLineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,24 +73,24 @@ SVGLineElement::~SVGLineElement()
 
 SVGAnimatedLength SVGLineElement::x1()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x1());
 }
 
 SVGAnimatedLength SVGLineElement::y1()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y1());
 }
 
 SVGAnimatedLength SVGLineElement::x2()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x2());
 }
 
 SVGAnimatedLength SVGLineElement::y2()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y2());
 }
diff --git a/ksvg/dom/SVGLinearGradientElement.cpp b/ksvg/dom/SVGLinearGradientElement.cpp
index 41c076dc..0885e41f 100644
--- a/ksvg/dom/SVGLinearGradientElement.cpp
+++ b/ksvg/dom/SVGLinearGradientElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGLinearGradientElement::SVGLinearGradientElement() : SVGGradientElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGLinearGradientElement::SVGLinearGradientElement(const SVGLinearGradientElement &other) : SVGGradientElement(other), impl(0)
+SVGLinearGradientElement::SVGLinearGradientElement(const SVGLinearGradientElement &other) : SVGGradientElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -67,24 +67,24 @@ SVGLinearGradientElement::~SVGLinearGradientElement()
 
 SVGAnimatedLength SVGLinearGradientElement::x1() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x1());
 }
 
 SVGAnimatedLength SVGLinearGradientElement::y1() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y1());
 }
 
 SVGAnimatedLength SVGLinearGradientElement::x2() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x2());
 }
 
 SVGAnimatedLength SVGLinearGradientElement::y2() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y2());
 }
diff --git a/ksvg/dom/SVGLocatable.cpp b/ksvg/dom/SVGLocatable.cpp
index 43a9aac7..243815b5 100644
--- a/ksvg/dom/SVGLocatable.cpp
+++ b/ksvg/dom/SVGLocatable.cpp
@@ -29,7 +29,7 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGLocatable::SVGLocatable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
 SVGLocatable::SVGLocatable(const SVGLocatable &other)
@@ -60,36 +60,36 @@ SVGLocatable::~SVGLocatable()
 
 SVGElement SVGLocatable::nearestViewportElement() const
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return impl->nearestViewportElement();
 }
 
 SVGElement SVGLocatable::farthestViewportElement() const
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return impl->farthestViewportElement();
 }
 
 SVGRect SVGLocatable::getBBox()
 {
-	if(!impl) return SVGRect(0);
+	if(!impl) return SVGRect(nullptr);
 	return SVGRect(impl->getBBox()); // TODO: Check correctness
 }
 
 SVGMatrix SVGLocatable::getCTM()
 {
-	if(!impl) return  SVGMatrix(0);
+	if(!impl) return  SVGMatrix(nullptr);
 	return SVGMatrix(impl->getCTM());
 }
 
 SVGMatrix SVGLocatable::getScreenCTM()
 {
-	if(!impl) return  SVGMatrix(0);
+	if(!impl) return  SVGMatrix(nullptr);
 	return SVGMatrix(impl->getScreenCTM());
 }
 
 SVGMatrix SVGLocatable::getTransformToElement(const SVGElement &element)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->getTransformToElement(element.handle()));
 }
diff --git a/ksvg/dom/SVGMPathElement.cpp b/ksvg/dom/SVGMPathElement.cpp
index cb725260..bacc086b 100644
--- a/ksvg/dom/SVGMPathElement.cpp
+++ b/ksvg/dom/SVGMPathElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGMPathElement::SVGMPathElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGMPathElement::SVGMPathElement(const SVGMPathElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(0)
+SVGMPathElement::SVGMPathElement(const SVGMPathElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGMarkerElement.cpp b/ksvg/dom/SVGMarkerElement.cpp
index de59227d..18965528 100644
--- a/ksvg/dom/SVGMarkerElement.cpp
+++ b/ksvg/dom/SVGMarkerElement.cpp
@@ -29,10 +29,10 @@ using namespace KSVG;
 
 SVGMarkerElement::SVGMarkerElement() : SVGElement(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGMarkerElement::SVGMarkerElement(const SVGMarkerElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(0)
+SVGMarkerElement::SVGMarkerElement(const SVGMarkerElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -74,43 +74,43 @@ SVGMarkerElement::~SVGMarkerElement()
 
 SVGAnimatedLength SVGMarkerElement::refX() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->refX());
 }
 
 SVGAnimatedLength SVGMarkerElement::refY() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->refY());
 }
 
 SVGAnimatedEnumeration SVGMarkerElement::markerUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->markerUnits());
 }
 
 SVGAnimatedLength SVGMarkerElement::markerWidth() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->markerWidth());
 }
 
 SVGAnimatedLength SVGMarkerElement::markerHeight() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->markerHeight());
 }
 
 SVGAnimatedEnumeration SVGMarkerElement::orientType() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->orientType());
 }
 
 SVGAnimatedAngle SVGMarkerElement::orientAngle() const
 {
-	if(!impl) return SVGAnimatedAngle(0);
+	if(!impl) return SVGAnimatedAngle(nullptr);
 	return SVGAnimatedAngle(impl->orientAngle());
 }
 
diff --git a/ksvg/dom/SVGMaskElement.cpp b/ksvg/dom/SVGMaskElement.cpp
index 7e1f9cee..46e061b6 100644
--- a/ksvg/dom/SVGMaskElement.cpp
+++ b/ksvg/dom/SVGMaskElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGMaskElement::SVGMaskElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGMaskElement::SVGMaskElement(const SVGMaskElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(0)
+SVGMaskElement::SVGMaskElement(const SVGMaskElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -72,36 +72,36 @@ SVGMaskElement::~SVGMaskElement()
 
 SVGAnimatedEnumeration SVGMaskElement::maskUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->maskUnits());
 }
 
 SVGAnimatedEnumeration SVGMaskElement::maskContentUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->maskContentUnits());
 }
 
 SVGAnimatedLength SVGMaskElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGMaskElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGMaskElement::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGMaskElement::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
diff --git a/ksvg/dom/SVGMatrix.cpp b/ksvg/dom/SVGMatrix.cpp
index e5e8c6db..93cc4bc4 100644
--- a/ksvg/dom/SVGMatrix.cpp
+++ b/ksvg/dom/SVGMatrix.cpp
@@ -35,7 +35,7 @@ SVGMatrix::SVGMatrix(double a, double b, double c, double d, double e, double f)
 	impl->ref();
 }
 
-SVGMatrix::SVGMatrix(const SVGMatrix &other) : impl(0)
+SVGMatrix::SVGMatrix(const SVGMatrix &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -143,66 +143,66 @@ double SVGMatrix::f() const
 
 SVGMatrix SVGMatrix::multiply(SVGMatrix &secondMatrix)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->multiply(secondMatrix.handle()));
 }
 
 SVGMatrix SVGMatrix::inverse()
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->inverse());
 }
 
 SVGMatrix SVGMatrix::translate(const double &x, const double &y)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->translate(x, y));
 }
 
 SVGMatrix SVGMatrix::scale(const double &scaleFactor)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->scale(scaleFactor));
 }
 
 SVGMatrix SVGMatrix::scaleNonUniform(const double &scaleFactorX, const double &scaleFactorY)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->scaleNonUniform(scaleFactorX, scaleFactorY));
 }
 
 SVGMatrix SVGMatrix::rotate(const double &angle)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->rotate(angle));
 }
 
 SVGMatrix SVGMatrix::rotateFromVector(const double &x, const double &y)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->rotateFromVector(x, y));
 }
 
 SVGMatrix SVGMatrix::flipX()
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->flipX());
 }
 
 SVGMatrix SVGMatrix::flipY()
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->flipY());
 }
 
 SVGMatrix SVGMatrix::skewX(const double &angle)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->skewX(angle));
 }
 
 SVGMatrix SVGMatrix::skewY(const double &angle)
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->skewY(angle));
 }
diff --git a/ksvg/dom/SVGMetadataElement.cpp b/ksvg/dom/SVGMetadataElement.cpp
index 11a4820c..94011738 100644
--- a/ksvg/dom/SVGMetadataElement.cpp
+++ b/ksvg/dom/SVGMetadataElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGMetadataElement::SVGMetadataElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGMetadataElement::SVGMetadataElement(const SVGMetadataElement &other) : SVGElement(other), impl(0)
+SVGMetadataElement::SVGMetadataElement(const SVGMetadataElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGMissingGlyphElement.cpp b/ksvg/dom/SVGMissingGlyphElement.cpp
index e4d5bd79..7af01383 100644
--- a/ksvg/dom/SVGMissingGlyphElement.cpp
+++ b/ksvg/dom/SVGMissingGlyphElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGMissingGlyphElement::SVGMissingGlyphElement() : SVGElement(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGMissingGlyphElement::SVGMissingGlyphElement(const SVGMissingGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(0)
+SVGMissingGlyphElement::SVGMissingGlyphElement(const SVGMissingGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGNumber.cpp b/ksvg/dom/SVGNumber.cpp
index 9230acb2..c6193549 100644
--- a/ksvg/dom/SVGNumber.cpp
+++ b/ksvg/dom/SVGNumber.cpp
@@ -29,7 +29,7 @@ SVGNumber::SVGNumber()
 	impl->ref();
 }
 
-SVGNumber::SVGNumber(const SVGNumber &other) : impl(0)
+SVGNumber::SVGNumber(const SVGNumber &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGNumberList.cpp b/ksvg/dom/SVGNumberList.cpp
index f0587a6e..3004fab5 100644
--- a/ksvg/dom/SVGNumberList.cpp
+++ b/ksvg/dom/SVGNumberList.cpp
@@ -30,7 +30,7 @@ SVGNumberList::SVGNumberList()
 	impl->ref();
 }
 
-SVGNumberList::SVGNumberList(const SVGNumberList &other) : impl(0)
+SVGNumberList::SVGNumberList(const SVGNumberList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -78,36 +78,36 @@ void SVGNumberList::clear()
 
 SVGNumber *SVGNumberList::initialize(SVGNumber *newItem)
 {
-	if(!impl) return new SVGNumber(0);
+	if(!impl) return new SVGNumber(nullptr);
 	return new SVGNumber(impl->initialize(newItem->handle()));
 }
 
 SVGNumber *SVGNumberList::getItem(unsigned long index)
 {
-	if(!impl) return new SVGNumber(0);
+	if(!impl) return new SVGNumber(nullptr);
 	return new SVGNumber(impl->getItem(index));
 }
 
 SVGNumber *SVGNumberList::insertItemBefore(SVGNumber *newItem, unsigned long index)
 {
-	if(!impl) return new SVGNumber(0);
+	if(!impl) return new SVGNumber(nullptr);
 	return new SVGNumber(impl->insertItemBefore(newItem->handle(), index));
 }
 
 SVGNumber *SVGNumberList::replaceItem(SVGNumber *newItem, unsigned long index)
 {
-	if(!impl) return new SVGNumber(0);
+	if(!impl) return new SVGNumber(nullptr);
 	return new SVGNumber(impl->replaceItem(newItem->handle(), index));
 }
 
 SVGNumber *SVGNumberList::removeItem(unsigned long index)
 {
-	if(!impl) return new SVGNumber(0);
+	if(!impl) return new SVGNumber(nullptr);
 	return new SVGNumber(impl->removeItem(index));
 }
 
 SVGNumber *SVGNumberList::appendItem(SVGNumber *newItem)
 {
-	if(!impl) return new SVGNumber(0);
+	if(!impl) return new SVGNumber(nullptr);
 	return new SVGNumber(impl->appendItem(newItem->handle()));
 }
diff --git a/ksvg/dom/SVGPaint.cpp b/ksvg/dom/SVGPaint.cpp
index f8df586b..e0a682b9 100644
--- a/ksvg/dom/SVGPaint.cpp
+++ b/ksvg/dom/SVGPaint.cpp
@@ -26,11 +26,11 @@ using namespace KSVG;
 SVGPaint::SVGPaint() : SVGColor()
 {
 	// FIXME: no icc color support...
-	impl = new SVGPaintImpl(0);
+	impl = new SVGPaintImpl(nullptr);
 	impl->ref();
 }
 
-SVGPaint::SVGPaint(const SVGPaint &other) : SVGColor(other), impl(0)
+SVGPaint::SVGPaint(const SVGPaint &other) : SVGColor(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGPathElement.cpp b/ksvg/dom/SVGPathElement.cpp
index d3610f47..f947f423 100644
--- a/ksvg/dom/SVGPathElement.cpp
+++ b/ksvg/dom/SVGPathElement.cpp
@@ -36,10 +36,10 @@ using namespace KSVG;
 
 SVGPathElement::SVGPathElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPathData()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGPathElement::SVGPathElement(const SVGPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPathData(other), impl(0)
+SVGPathElement::SVGPathElement(const SVGPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPathData(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGPathSegList.cpp b/ksvg/dom/SVGPathSegList.cpp
index 24d255bc..d3e8b070 100644
--- a/ksvg/dom/SVGPathSegList.cpp
+++ b/ksvg/dom/SVGPathSegList.cpp
@@ -77,36 +77,36 @@ void SVGPathSegList::clear()
 
 SVGPathSeg *SVGPathSegList::initialize(SVGPathSeg *newItem)
 {
-	if(!impl) return new SVGPathSeg(0);
+	if(!impl) return new SVGPathSeg(nullptr);
 	return new SVGPathSeg(impl->initialize(newItem->handle()));
 }
 
 SVGPathSeg *SVGPathSegList::getItem(unsigned long index)
 {
-	if(!impl) return new SVGPathSeg(0);
+	if(!impl) return new SVGPathSeg(nullptr);
 	return new SVGPathSeg(impl->getItem(index));
 }
 
 SVGPathSeg *SVGPathSegList::insertItemBefore(SVGPathSeg *newItem, unsigned long index)
 {
-	if(!impl) return new SVGPathSeg(0);
+	if(!impl) return new SVGPathSeg(nullptr);
 	return new SVGPathSeg(impl->insertItemBefore(newItem->handle(), index));
 }
 
 SVGPathSeg *SVGPathSegList::replaceItem(SVGPathSeg *newItem, unsigned long index)
 {
-	if(!impl) return new SVGPathSeg(0);
+	if(!impl) return new SVGPathSeg(nullptr);
 	return new SVGPathSeg(impl->replaceItem(newItem->handle(), index));
 }
 
 SVGPathSeg *SVGPathSegList::removeItem(unsigned long index)
 {
-	if(!impl) return new SVGPathSeg(0);
+	if(!impl) return new SVGPathSeg(nullptr);
 	return new SVGPathSeg(impl->removeItem(index));
 }
 
 SVGPathSeg *SVGPathSegList::appendItem(SVGPathSeg *newItem)
 {
-	if(!impl) return new SVGPathSeg(0);
+	if(!impl) return new SVGPathSeg(nullptr);
 	return new SVGPathSeg(impl->appendItem(newItem->handle()));
 }
diff --git a/ksvg/dom/SVGPatternElement.cpp b/ksvg/dom/SVGPatternElement.cpp
index 8dcc86f8..fc320135 100644
--- a/ksvg/dom/SVGPatternElement.cpp
+++ b/ksvg/dom/SVGPatternElement.cpp
@@ -28,10 +28,10 @@ using namespace KSVG;
 
 SVGPatternElement::SVGPatternElement() : SVGElement(), SVGURIReference(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox(), SVGUnitTypes()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGPatternElement::SVGPatternElement(const SVGPatternElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), SVGUnitTypes(), impl(0)
+SVGPatternElement::SVGPatternElement(const SVGPatternElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), SVGUnitTypes(), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -74,42 +74,42 @@ SVGPatternElement::~SVGPatternElement()
 
 SVGAnimatedEnumeration SVGPatternElement::patternUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->patternUnits());
 }
 
 SVGAnimatedEnumeration SVGPatternElement::patternContentUnits() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->patternContentUnits());
 }
 
 SVGAnimatedTransformList SVGPatternElement::patternTransform() const
 {
-	if(!impl) return SVGAnimatedTransformList(0);
+	if(!impl) return SVGAnimatedTransformList(nullptr);
 	return SVGAnimatedTransformList(impl->patternTransform());
 }
 
 SVGAnimatedLength SVGPatternElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGPatternElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGPatternElement::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGPatternElement::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
diff --git a/ksvg/dom/SVGPoint.cpp b/ksvg/dom/SVGPoint.cpp
index c385c904..3b4fca41 100644
--- a/ksvg/dom/SVGPoint.cpp
+++ b/ksvg/dom/SVGPoint.cpp
@@ -30,7 +30,7 @@ SVGPoint::SVGPoint()
 	impl->ref();
 }
 
-SVGPoint::SVGPoint(const SVGPoint &other) : impl(0)
+SVGPoint::SVGPoint(const SVGPoint &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -90,6 +90,6 @@ float SVGPoint::y()
 
 SVGPoint SVGPoint::matrixTransform(SVGMatrix &matrix)
 {
-	if(!impl) return SVGPoint(0);
+	if(!impl) return SVGPoint(nullptr);
 	return SVGPoint(impl->matrixTransform(*matrix.handle()));
 }
diff --git a/ksvg/dom/SVGPointList.cpp b/ksvg/dom/SVGPointList.cpp
index 963b1c60..87a0ba46 100644
--- a/ksvg/dom/SVGPointList.cpp
+++ b/ksvg/dom/SVGPointList.cpp
@@ -31,7 +31,7 @@ SVGPointList::SVGPointList()
 	impl->ref();
 }
 
-SVGPointList::SVGPointList(const SVGPointList &other) : impl(0)
+SVGPointList::SVGPointList(const SVGPointList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -79,36 +79,36 @@ void SVGPointList::clear()
 
 SVGPoint *SVGPointList::initialize(SVGPoint *newItem)
 {
-	if(!impl) return new SVGPoint(0);
+	if(!impl) return new SVGPoint(nullptr);
 	return new SVGPoint(impl->initialize(newItem->handle()));
 }
 
 SVGPoint *SVGPointList::getItem(unsigned long index)
 {
-	if(!impl) return new SVGPoint(0);
+	if(!impl) return new SVGPoint(nullptr);
 	return new SVGPoint(impl->getItem(index));
 }
 
 SVGPoint *SVGPointList::insertItemBefore(SVGPoint *newItem, unsigned long index)
 {
-	if(!impl) return new SVGPoint(0);
+	if(!impl) return new SVGPoint(nullptr);
 	return new SVGPoint(impl->insertItemBefore(newItem->handle(), index));
 }
 
 SVGPoint *SVGPointList::replaceItem(SVGPoint *newItem, unsigned long index)
 {
-	if(!impl) return new SVGPoint(0);
+	if(!impl) return new SVGPoint(nullptr);
 	return new SVGPoint(impl->replaceItem(newItem->handle(), index));
 }
 
 SVGPoint *SVGPointList::removeItem(unsigned long index)
 {
-	if(!impl) return new SVGPoint(0);
+	if(!impl) return new SVGPoint(nullptr);
 	return new SVGPoint(impl->removeItem(index));
 }
 
 SVGPoint *SVGPointList::appendItem(SVGPoint *newItem)
 {
-	if(!impl) return new SVGPoint(0);
+	if(!impl) return new SVGPoint(nullptr);
 	return new SVGPoint(impl->appendItem(newItem->handle()));
 }
diff --git a/ksvg/dom/SVGPolygonElement.cpp b/ksvg/dom/SVGPolygonElement.cpp
index 043c19df..7ba7091c 100644
--- a/ksvg/dom/SVGPolygonElement.cpp
+++ b/ksvg/dom/SVGPolygonElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGPolygonElement::SVGPolygonElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPoints()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGPolygonElement::SVGPolygonElement(const SVGPolygonElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(0)
+SVGPolygonElement::SVGPolygonElement(const SVGPolygonElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -73,12 +73,12 @@ SVGPolygonElement::~SVGPolygonElement()
 
 SVGPointList SVGPolygonElement::points()
 {
-	if(!impl) return SVGPointList(0);
+	if(!impl) return SVGPointList(nullptr);
 	return SVGPointList(impl->points());
 }
 
 SVGPointList SVGPolygonElement::animatedPoints()
 {
-	if(!impl) return SVGPointList(0);
+	if(!impl) return SVGPointList(nullptr);
 	return SVGPointList(impl->animatedPoints());
 }
diff --git a/ksvg/dom/SVGPolylineElement.cpp b/ksvg/dom/SVGPolylineElement.cpp
index 789c5847..ff7599c7 100644
--- a/ksvg/dom/SVGPolylineElement.cpp
+++ b/ksvg/dom/SVGPolylineElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGPolylineElement::SVGPolylineElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPoints()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGPolylineElement::SVGPolylineElement(const SVGPolylineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(0)
+SVGPolylineElement::SVGPolylineElement(const SVGPolylineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -74,12 +74,12 @@ SVGPolylineElement::~SVGPolylineElement()
 
 SVGPointList SVGPolylineElement::points()
 {
-	if(!impl) return SVGPointList(0);
+	if(!impl) return SVGPointList(nullptr);
 	return SVGPointList(impl->points());
 }
 
 SVGPointList SVGPolylineElement::animatedPoints()
 {
-	if(!impl) return SVGPointList(0);
+	if(!impl) return SVGPointList(nullptr);
 	return SVGPointList(impl->animatedPoints());
 }
diff --git a/ksvg/dom/SVGRadialGradientElement.cpp b/ksvg/dom/SVGRadialGradientElement.cpp
index 0e71d846..3c85decf 100644
--- a/ksvg/dom/SVGRadialGradientElement.cpp
+++ b/ksvg/dom/SVGRadialGradientElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGRadialGradientElement::SVGRadialGradientElement() : SVGGradientElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGRadialGradientElement::SVGRadialGradientElement(const SVGRadialGradientElement &other) : SVGGradientElement(other), impl(0)
+SVGRadialGradientElement::SVGRadialGradientElement(const SVGRadialGradientElement &other) : SVGGradientElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -67,30 +67,30 @@ SVGRadialGradientElement::~SVGRadialGradientElement()
 
 SVGAnimatedLength SVGRadialGradientElement::cx() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->cx());
 }
 
 SVGAnimatedLength SVGRadialGradientElement::cy() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->cy());
 }
 
 SVGAnimatedLength SVGRadialGradientElement::r() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->r());
 }
 
 SVGAnimatedLength SVGRadialGradientElement::fx() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->fx());
 }
 
 SVGAnimatedLength SVGRadialGradientElement::fy() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->fy());
 }
diff --git a/ksvg/dom/SVGRect.cpp b/ksvg/dom/SVGRect.cpp
index 35a4d550..eb693ee8 100644
--- a/ksvg/dom/SVGRect.cpp
+++ b/ksvg/dom/SVGRect.cpp
@@ -29,7 +29,7 @@ SVGRect::SVGRect()
 	impl->ref();
 }
 
-SVGRect::SVGRect(const SVGRect &other) : impl(0)
+SVGRect::SVGRect(const SVGRect &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGRectElement.cpp b/ksvg/dom/SVGRectElement.cpp
index 51af0272..7d0225de 100644
--- a/ksvg/dom/SVGRectElement.cpp
+++ b/ksvg/dom/SVGRectElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGRectElement::SVGRectElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGRectElement::SVGRectElement(const SVGRectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGRectElement::SVGRectElement(const SVGRectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -72,36 +72,36 @@ SVGRectElement::~SVGRectElement()
 
 SVGAnimatedLength SVGRectElement::x()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGRectElement::y()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGRectElement::width()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGRectElement::height()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
 
 SVGAnimatedLength SVGRectElement::rx()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->rx());
 }
 
 SVGAnimatedLength SVGRectElement::ry()
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->ry());
 }
diff --git a/ksvg/dom/SVGSVGElement.cpp b/ksvg/dom/SVGSVGElement.cpp
index 5f19c508..6fe40de6 100644
--- a/ksvg/dom/SVGSVGElement.cpp
+++ b/ksvg/dom/SVGSVGElement.cpp
@@ -36,10 +36,10 @@ using namespace KSVG;
 
 SVGSVGElement::SVGSVGElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGLocatable(), SVGFitToViewBox(), SVGZoomAndPan()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGSVGElement::SVGSVGElement(const SVGSVGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGLocatable(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(0)
+SVGSVGElement::SVGSVGElement(const SVGSVGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGLocatable(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -84,25 +84,25 @@ SVGSVGElement::~SVGSVGElement()
 
 SVGAnimatedLength SVGSVGElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGSafeCreator<SVGAnimatedLength, SVGAnimatedLengthImpl>::create(impl->x());
 }
 
 SVGAnimatedLength SVGSVGElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGSafeCreator<SVGAnimatedLength, SVGAnimatedLengthImpl>::create(impl->y());
 }
 
 SVGAnimatedLength SVGSVGElement::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGSafeCreator<SVGAnimatedLength, SVGAnimatedLengthImpl>::create(impl->width());
 }
 
 SVGAnimatedLength SVGSVGElement::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGSafeCreator<SVGAnimatedLength, SVGAnimatedLengthImpl>::create(impl->height());
 }
 
@@ -132,7 +132,7 @@ DOM::DOMString SVGSVGElement::contentStyleType() const
 
 SVGRect SVGSVGElement::viewport() const
 {
-	if(!impl) return SVGRect(0);
+	if(!impl) return SVGRect(nullptr);
 	return SVGRect(impl->viewport());
 }
 
@@ -174,7 +174,7 @@ bool SVGSVGElement::useCurrentView() const
 
 SVGViewSpec SVGSVGElement::currentView() const
 {
-	if(!impl) return SVGViewSpec(0);
+	if(!impl) return SVGViewSpec(nullptr);
 	return impl->currentView();
 }
 
@@ -192,7 +192,7 @@ float SVGSVGElement::currentScale() const
 
 SVGPoint SVGSVGElement::currentTranslate() const
 {
-	if(!impl) return SVGPoint(0);
+	if(!impl) return SVGPoint(nullptr);
 	return SVGSafeCreator<SVGPoint, SVGPointImpl>::create(impl->currentTranslate());
 }
 
@@ -282,54 +282,54 @@ void SVGSVGElement::deSelectAll()
 
 SVGNumber SVGSVGElement::createSVGNumber()
 {
-	if(!impl) return SVGNumber(0);
+	if(!impl) return SVGNumber(nullptr);
 	return SVGSafeCreator<SVGNumber, SVGNumberImpl>::create(impl->createSVGNumber());
 }
 
 SVGLength SVGSVGElement::createSVGLength()
 {
-	if(!impl) return SVGLength(0);
+	if(!impl) return SVGLength(nullptr);
 	return SVGSafeCreator<SVGLength, SVGLengthImpl>::create(impl->createSVGLength());
 }
 
 SVGAngle SVGSVGElement::createSVGAngle()
 {
-	if(!impl) return SVGAngle(0);
+	if(!impl) return SVGAngle(nullptr);
 	return SVGSafeCreator<SVGAngle, SVGAngleImpl>::create(impl->createSVGAngle());
 }
 
 SVGPoint SVGSVGElement::createSVGPoint()
 {
-	if(!impl) return SVGPoint(0);
+	if(!impl) return SVGPoint(nullptr);
 	return SVGSafeCreator<SVGPoint, SVGPointImpl>::create(impl->createSVGPoint());
 }
 
 SVGMatrix SVGSVGElement::createSVGMatrix()
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGSafeCreator<SVGMatrix, SVGMatrixImpl>::create(impl->createSVGMatrix());
 }
 
 SVGRect SVGSVGElement::createSVGRect()
 {
-	if(!impl) return SVGRect(0);
+	if(!impl) return SVGRect(nullptr);
 	return SVGSafeCreator<SVGRect, SVGRectImpl>::create(impl->createSVGRect());
 }
 
 SVGTransform SVGSVGElement::createSVGTransform()
 {
-	if(!impl) return SVGTransform(0);
+	if(!impl) return SVGTransform(nullptr);
 	return SVGSafeCreator<SVGTransform, SVGTransformImpl>::create(impl->createSVGTransform());
 }
 
 SVGTransform SVGSVGElement::createSVGTransformFromMatrix(const SVGMatrix &matrix)
 {
-	if(!impl) return SVGTransform(0);
+	if(!impl) return SVGTransform(nullptr);
 	return SVGSafeCreator<SVGTransform, SVGTransformImpl>::create(impl->createSVGTransformFromMatrix(matrix.handle()));
 }
 
 SVGElement SVGSVGElement::getElementById(const DOM::DOMString &elementId)
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return SVGSafeCreator<SVGElement, SVGElementImpl>::create(impl->getElementById(elementId));
 }
diff --git a/ksvg/dom/SVGScriptElement.cpp b/ksvg/dom/SVGScriptElement.cpp
index 48974905..92f623e8 100644
--- a/ksvg/dom/SVGScriptElement.cpp
+++ b/ksvg/dom/SVGScriptElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGScriptElement::SVGScriptElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGScriptElement::SVGScriptElement(const SVGScriptElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(0)
+SVGScriptElement::SVGScriptElement(const SVGScriptElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGSetElement.cpp b/ksvg/dom/SVGSetElement.cpp
index 9dff9064..fe9b648d 100644
--- a/ksvg/dom/SVGSetElement.cpp
+++ b/ksvg/dom/SVGSetElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGSetElement::SVGSetElement() : SVGAnimationElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGSetElement::SVGSetElement(const SVGSetElement &other) : SVGAnimationElement(other), impl(0)
+SVGSetElement::SVGSetElement(const SVGSetElement &other) : SVGAnimationElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGStopElement.cpp b/ksvg/dom/SVGStopElement.cpp
index 1288a49e..83969b7f 100644
--- a/ksvg/dom/SVGStopElement.cpp
+++ b/ksvg/dom/SVGStopElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGStopElement::SVGStopElement() : SVGElement(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGStopElement::SVGStopElement(const SVGStopElement &other) : SVGElement(other), SVGStylable(other), impl(0)
+SVGStopElement::SVGStopElement(const SVGStopElement &other) : SVGElement(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -68,6 +68,6 @@ SVGStopElement::~SVGStopElement()
 
 SVGAnimatedNumber SVGStopElement::offset() const
 {
-	if(!impl) return SVGAnimatedNumber(0);
+	if(!impl) return SVGAnimatedNumber(nullptr);
 	return SVGAnimatedNumber(impl->offset());
 }
diff --git a/ksvg/dom/SVGStringList.cpp b/ksvg/dom/SVGStringList.cpp
index de9527f3..7ba91ffe 100644
--- a/ksvg/dom/SVGStringList.cpp
+++ b/ksvg/dom/SVGStringList.cpp
@@ -30,7 +30,7 @@ SVGStringList::SVGStringList()
 	impl->ref();
 }
 
-SVGStringList::SVGStringList(const SVGStringList &other) : impl(0)
+SVGStringList::SVGStringList(const SVGStringList &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGStylable.cpp b/ksvg/dom/SVGStylable.cpp
index 9092c981..35f4ec6c 100644
--- a/ksvg/dom/SVGStylable.cpp
+++ b/ksvg/dom/SVGStylable.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGStylable::SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGStylable::SVGStylable(const SVGStylable &other) : impl(0)
+SVGStylable::SVGStylable(const SVGStylable &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGStyleElement.cpp b/ksvg/dom/SVGStyleElement.cpp
index 7e734336..5d4c278e 100644
--- a/ksvg/dom/SVGStyleElement.cpp
+++ b/ksvg/dom/SVGStyleElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGStyleElement::SVGStyleElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGStyleElement::SVGStyleElement(const SVGStyleElement &other) : SVGElement(other), impl(0)
+SVGStyleElement::SVGStyleElement(const SVGStyleElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGSwitchElement.cpp b/ksvg/dom/SVGSwitchElement.cpp
index ecaa2a1c..e88609fe 100644
--- a/ksvg/dom/SVGSwitchElement.cpp
+++ b/ksvg/dom/SVGSwitchElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGSwitchElement::SVGSwitchElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGSwitchElement::SVGSwitchElement(const SVGSwitchElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0)
+SVGSwitchElement::SVGSwitchElement(const SVGSwitchElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGSymbolElement.cpp b/ksvg/dom/SVGSymbolElement.cpp
index 9b8d89f5..6b4b3178 100644
--- a/ksvg/dom/SVGSymbolElement.cpp
+++ b/ksvg/dom/SVGSymbolElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGSymbolElement::SVGSymbolElement() : SVGElement(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGSymbolElement::SVGSymbolElement(const SVGSymbolElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(0)
+SVGSymbolElement::SVGSymbolElement(const SVGSymbolElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGTRefElement.cpp b/ksvg/dom/SVGTRefElement.cpp
index f987e3aa..d8ce3afe 100644
--- a/ksvg/dom/SVGTRefElement.cpp
+++ b/ksvg/dom/SVGTRefElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGTRefElement::SVGTRefElement() : SVGTextPositioningElement(), SVGURIReference()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGTRefElement::SVGTRefElement(const SVGTRefElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(0)
+SVGTRefElement::SVGTRefElement(const SVGTRefElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGTSpanElement.cpp b/ksvg/dom/SVGTSpanElement.cpp
index 6a2cf66c..39e90ec1 100644
--- a/ksvg/dom/SVGTSpanElement.cpp
+++ b/ksvg/dom/SVGTSpanElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGTSpanElement::SVGTSpanElement() : SVGTextPositioningElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGTSpanElement::SVGTSpanElement(const SVGTSpanElement &other) : SVGTextPositioningElement(other), impl(0)
+SVGTSpanElement::SVGTSpanElement(const SVGTSpanElement &other) : SVGTextPositioningElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGTests.cpp b/ksvg/dom/SVGTests.cpp
index 145da6af..513a1f7b 100644
--- a/ksvg/dom/SVGTests.cpp
+++ b/ksvg/dom/SVGTests.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGTests::SVGTests()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGTests::SVGTests(const SVGTests &other) : impl(0)
+SVGTests::SVGTests(const SVGTests &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -58,19 +58,19 @@ SVGTests::~SVGTests()
 
 SVGStringList SVGTests::requiredFeatures() const
 {
-	if(!impl) return SVGStringList(0);
+	if(!impl) return SVGStringList(nullptr);
 	return SVGStringList(impl->requiredFeatures());
 }
 
 SVGStringList SVGTests::requiredExtensions() const
 {
-	if(!impl) return SVGStringList(0);
+	if(!impl) return SVGStringList(nullptr);
 	return SVGStringList(impl->requiredExtensions());
 }
 
 SVGStringList SVGTests::systemLanguage() const
 {
-	if(!impl) return SVGStringList(0);
+	if(!impl) return SVGStringList(nullptr);
 	return SVGStringList(impl->systemLanguage());
 }
 
diff --git a/ksvg/dom/SVGTextContentElement.cpp b/ksvg/dom/SVGTextContentElement.cpp
index f40d23b6..268cfa1e 100644
--- a/ksvg/dom/SVGTextContentElement.cpp
+++ b/ksvg/dom/SVGTextContentElement.cpp
@@ -27,7 +27,7 @@ using namespace KSVG;
 
 SVGTextContentElement::SVGTextContentElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable()
 {
-	impl = new SVGTextContentElementImpl(0);
+	impl = new SVGTextContentElementImpl(nullptr);
 }
 
 SVGTextContentElement::SVGTextContentElement(const SVGTextContentElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other)
@@ -69,7 +69,7 @@ SVGAnimatedLength SVGTextContentElement::textLength() const
 
 SVGAnimatedEnumeration SVGTextContentElement::lengthAdjust() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->lengthAdjust());
 }
 
diff --git a/ksvg/dom/SVGTextElement.cpp b/ksvg/dom/SVGTextElement.cpp
index b80a148a..941108d0 100644
--- a/ksvg/dom/SVGTextElement.cpp
+++ b/ksvg/dom/SVGTextElement.cpp
@@ -27,7 +27,7 @@ using namespace KSVG;
 
 SVGTextElement::SVGTextElement() : SVGTextPositioningElement(), SVGTransformable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
 SVGTextElement::SVGTextElement(const SVGTextElement &other) : SVGTextPositioningElement(other), SVGTransformable(other)
diff --git a/ksvg/dom/SVGTextPathElement.cpp b/ksvg/dom/SVGTextPathElement.cpp
index 09d26e20..c73bc66a 100644
--- a/ksvg/dom/SVGTextPathElement.cpp
+++ b/ksvg/dom/SVGTextPathElement.cpp
@@ -27,11 +27,11 @@ using namespace KSVG;
 
 SVGTextPathElement::SVGTextPathElement() : SVGTextContentElement(), SVGURIReference()
 {
-	impl = new SVGTextPathElementImpl(0);
+	impl = new SVGTextPathElementImpl(nullptr);
 	impl->ref();
 }
 
-SVGTextPathElement::SVGTextPathElement(const SVGTextPathElement &other) : SVGTextContentElement(other), SVGURIReference(other), impl(0)
+SVGTextPathElement::SVGTextPathElement(const SVGTextPathElement &other) : SVGTextContentElement(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,18 +70,18 @@ SVGTextPathElement::~SVGTextPathElement()
 
 SVGAnimatedLength SVGTextPathElement::startOffset() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->startOffset());
 }
 
 SVGAnimatedEnumeration SVGTextPathElement::method() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->method());
 }
 
 SVGAnimatedEnumeration SVGTextPathElement::spacing() const
 {
-	if(!impl) return SVGAnimatedEnumeration(0);
+	if(!impl) return SVGAnimatedEnumeration(nullptr);
 	return SVGAnimatedEnumeration(impl->spacing());
 }
diff --git a/ksvg/dom/SVGTextPositioningElement.cpp b/ksvg/dom/SVGTextPositioningElement.cpp
index 6ce7d346..8dfae4ce 100644
--- a/ksvg/dom/SVGTextPositioningElement.cpp
+++ b/ksvg/dom/SVGTextPositioningElement.cpp
@@ -30,7 +30,7 @@ using namespace KSVG;
 
 SVGTextPositioningElement::SVGTextPositioningElement() : SVGTextContentElement()
 {
-	impl = new SVGTextPositioningElementImpl(0);
+	impl = new SVGTextPositioningElementImpl(nullptr);
 }
 
 SVGTextPositioningElement::SVGTextPositioningElement(const SVGTextPositioningElement &other) : SVGTextContentElement(other)
diff --git a/ksvg/dom/SVGTitleElement.cpp b/ksvg/dom/SVGTitleElement.cpp
index 9c301d10..63c7a8d0 100644
--- a/ksvg/dom/SVGTitleElement.cpp
+++ b/ksvg/dom/SVGTitleElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGTitleElement::SVGTitleElement() : SVGElement(), SVGLangSpace(), SVGStylable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGTitleElement::SVGTitleElement(const SVGTitleElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(0)
+SVGTitleElement::SVGTitleElement(const SVGTitleElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGTransform.cpp b/ksvg/dom/SVGTransform.cpp
index a8bbe4db..3718d129 100644
--- a/ksvg/dom/SVGTransform.cpp
+++ b/ksvg/dom/SVGTransform.cpp
@@ -30,7 +30,7 @@ SVGTransform::SVGTransform()
 	impl->ref();
 }
 
-SVGTransform::SVGTransform(const SVGTransform &other) : impl(0)
+SVGTransform::SVGTransform(const SVGTransform &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,7 +70,7 @@ unsigned short SVGTransform::type() const
 
 SVGMatrix SVGTransform::matrix() const
 {
-	if(!impl) return SVGMatrix(0);
+	if(!impl) return SVGMatrix(nullptr);
 	return SVGMatrix(impl->matrix());
 }
 
diff --git a/ksvg/dom/SVGTransformList.cpp b/ksvg/dom/SVGTransformList.cpp
index d363aef6..50a82abb 100644
--- a/ksvg/dom/SVGTransformList.cpp
+++ b/ksvg/dom/SVGTransformList.cpp
@@ -80,48 +80,48 @@ void SVGTransformList::clear()
 
 SVGTransform *SVGTransformList::initialize(SVGTransform *newItem)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(impl->initialize(newItem->handle()));
 }
 
 SVGTransform *SVGTransformList::getItem(unsigned long index)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(impl->getItem(index));
 }
 
 SVGTransform *SVGTransformList::insertItemBefore(SVGTransform *newItem, unsigned long index)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(impl->insertItemBefore(newItem->handle(), index));
 }
 
 SVGTransform *SVGTransformList::replaceItem(SVGTransform *newItem, unsigned long index)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(impl->replaceItem(newItem->handle(), index));
 }
 
 SVGTransform *SVGTransformList::removeItem(unsigned long index)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(impl->removeItem(index));
 }
 
 SVGTransform *SVGTransformList::appendItem(SVGTransform *newItem)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(impl->appendItem(newItem->handle()));
 }
 
 SVGTransform *SVGTransformList::createSVGTransformFromMatrix(SVGMatrix &matrix)
 {
-	if(!impl) return new SVGTransform(0);
+	if(!impl) return new SVGTransform(nullptr);
 	return new SVGTransform(SVGSVGElementImpl::createSVGTransformFromMatrix(matrix.handle()));
 }
 
 SVGTransform *SVGTransformList::consolidate()
 {
-	if(!impl || impl->numberOfItems()==0) return 0;
+	if(!impl || impl->numberOfItems()==0) return nullptr;
 	return new SVGTransform(impl->consolidate());
 }
diff --git a/ksvg/dom/SVGTransformable.cpp b/ksvg/dom/SVGTransformable.cpp
index 3c2d22f6..b8ee1777 100644
--- a/ksvg/dom/SVGTransformable.cpp
+++ b/ksvg/dom/SVGTransformable.cpp
@@ -27,7 +27,7 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGTransformable::SVGTransformable() : SVGLocatable()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
 SVGTransformable::SVGTransformable(const SVGTransformable &other) : SVGLocatable(other)
@@ -60,6 +60,6 @@ SVGTransformable::~SVGTransformable()
 
 SVGAnimatedTransformList SVGTransformable::transform()
 {
-	if(!impl) return SVGAnimatedTransformList(0);
+	if(!impl) return SVGAnimatedTransformList(nullptr);
 	return SVGAnimatedTransformList(impl->transform());
 }
diff --git a/ksvg/dom/SVGURIReference.cpp b/ksvg/dom/SVGURIReference.cpp
index 85658aa4..e551ee12 100644
--- a/ksvg/dom/SVGURIReference.cpp
+++ b/ksvg/dom/SVGURIReference.cpp
@@ -56,6 +56,6 @@ SVGURIReference::~SVGURIReference()
 
 SVGAnimatedString SVGURIReference::href() const
 {
-	if(!impl) return SVGAnimatedString(0);
+	if(!impl) return SVGAnimatedString(nullptr);
 	return SVGAnimatedString(impl->href());
 }
diff --git a/ksvg/dom/SVGUseElement.cpp b/ksvg/dom/SVGUseElement.cpp
index e74e05e8..b833ff04 100644
--- a/ksvg/dom/SVGUseElement.cpp
+++ b/ksvg/dom/SVGUseElement.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGUseElement::SVGUseElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGUseElement::SVGUseElement(const SVGUseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0)
+SVGUseElement::SVGUseElement(const SVGUseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -74,36 +74,36 @@ SVGUseElement::~SVGUseElement()
 
 SVGAnimatedLength SVGUseElement::x() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->x());
 }
 
 SVGAnimatedLength SVGUseElement::y() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->y());
 }
 
 SVGAnimatedLength SVGUseElement::width() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->width());
 }
 
 SVGAnimatedLength SVGUseElement::height() const
 {
-	if(!impl) return SVGAnimatedLength(0);
+	if(!impl) return SVGAnimatedLength(nullptr);
 	return SVGAnimatedLength(impl->height());
 }
 
 SVGElementInstance SVGUseElement::instanceRoot() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return impl->instanceRoot();
 }
 
 SVGElementInstance SVGUseElement::animatedInstanceRoot() const
 {
-	if(!impl) return SVGElementInstance(0);
+	if(!impl) return SVGElementInstance(nullptr);
 	return impl->animatedInstanceRoot();
 }
diff --git a/ksvg/dom/SVGVKernElement.cpp b/ksvg/dom/SVGVKernElement.cpp
index 7a52b933..96b481f2 100644
--- a/ksvg/dom/SVGVKernElement.cpp
+++ b/ksvg/dom/SVGVKernElement.cpp
@@ -25,10 +25,10 @@ using namespace KSVG;
 
 SVGVKernElement::SVGVKernElement() : SVGElement()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGVKernElement::SVGVKernElement(const SVGVKernElement &other) : SVGElement(other), impl(0)
+SVGVKernElement::SVGVKernElement(const SVGVKernElement &other) : SVGElement(other), impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGViewElement.cpp b/ksvg/dom/SVGViewElement.cpp
index 0214be20..0df7c679 100644
--- a/ksvg/dom/SVGViewElement.cpp
+++ b/ksvg/dom/SVGViewElement.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 
 SVGViewElement::SVGViewElement() : SVGElement(), SVGExternalResourcesRequired(), SVGFitToViewBox(), SVGZoomAndPan()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGViewElement::SVGViewElement(const SVGViewElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(0)
+SVGViewElement::SVGViewElement(const SVGViewElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,6 +70,6 @@ SVGViewElement::~SVGViewElement()
 
 SVGStringList SVGViewElement::viewTarget() const
 {
-	if(!impl) return SVGStringList(0);
+	if(!impl) return SVGStringList(nullptr);
 	return SVGStringList(impl->viewTarget());
 }
diff --git a/ksvg/dom/SVGViewSpec.cpp b/ksvg/dom/SVGViewSpec.cpp
index c7877736..5c3849a2 100644
--- a/ksvg/dom/SVGViewSpec.cpp
+++ b/ksvg/dom/SVGViewSpec.cpp
@@ -31,7 +31,7 @@ SVGViewSpec::SVGViewSpec() : SVGZoomAndPan(), SVGFitToViewBox()
 	impl->ref();
 }
 
-SVGViewSpec::SVGViewSpec(const SVGViewSpec &other) : SVGZoomAndPan(other), SVGFitToViewBox(other), impl(0)
+SVGViewSpec::SVGViewSpec(const SVGViewSpec &other) : SVGZoomAndPan(other), SVGFitToViewBox(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -70,13 +70,13 @@ SVGViewSpec::~SVGViewSpec()
 
 SVGTransformList SVGViewSpec::transform() const
 {
-	if(!impl) return SVGTransformList(0);
+	if(!impl) return SVGTransformList(nullptr);
 	return SVGTransformList(impl->transform());
 }
 
 SVGElement SVGViewSpec::viewTarget() const
 {
-	if(!impl) return SVGElement(0);
+	if(!impl) return SVGElement(nullptr);
 	return SVGElement(impl->viewTarget());
 }
 
diff --git a/ksvg/dom/SVGWindow.cpp b/ksvg/dom/SVGWindow.cpp
index 22a8dcc0..a9a6089a 100644
--- a/ksvg/dom/SVGWindow.cpp
+++ b/ksvg/dom/SVGWindow.cpp
@@ -30,7 +30,7 @@ SVGWindow::SVGWindow()
 	impl->ref();
 }
 
-SVGWindow::SVGWindow(const SVGWindow &other) : impl(0)
+SVGWindow::SVGWindow(const SVGWindow &other) : impl(nullptr)
 {
 	(*this) = other;
 }
@@ -72,7 +72,7 @@ SVGWindow::~SVGWindow()
 
 SVGDocument SVGWindow::document() const
 {
-	if(!impl) return SVGDocument(0); // FIXME
+	if(!impl) return SVGDocument(nullptr); // FIXME
 	return impl->document();
 }
 
diff --git a/ksvg/dom/SVGZoomAndPan.cpp b/ksvg/dom/SVGZoomAndPan.cpp
index a8a0bf04..d61a06aa 100644
--- a/ksvg/dom/SVGZoomAndPan.cpp
+++ b/ksvg/dom/SVGZoomAndPan.cpp
@@ -26,10 +26,10 @@ using namespace KSVG;
 // This class can't be constructed seperately.
 SVGZoomAndPan::SVGZoomAndPan()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGZoomAndPan::SVGZoomAndPan(const SVGZoomAndPan &other) : impl(0)
+SVGZoomAndPan::SVGZoomAndPan(const SVGZoomAndPan &other) : impl(nullptr)
 {
 	(*this) = other;
 }
diff --git a/ksvg/dom/SVGZoomEvent.cpp b/ksvg/dom/SVGZoomEvent.cpp
index cf3cd8d6..c4dead84 100644
--- a/ksvg/dom/SVGZoomEvent.cpp
+++ b/ksvg/dom/SVGZoomEvent.cpp
@@ -27,10 +27,10 @@ using namespace KSVG;
 
 SVGZoomEvent::SVGZoomEvent() : DOM::UIEvent()
 {
-	impl = 0;
+	impl = nullptr;
 }
 
-SVGZoomEvent::SVGZoomEvent(const SVGZoomEvent &other) : DOM::UIEvent(other), impl(0)
+SVGZoomEvent::SVGZoomEvent(const SVGZoomEvent &other) : DOM::UIEvent(other), impl(nullptr)
 {
 	(*this) = other;
 }
@@ -68,7 +68,7 @@ SVGZoomEvent::~SVGZoomEvent()
 
 SVGRect SVGZoomEvent::zoomRectScreen() const
 {
-	if(!impl) return SVGRect(0);
+	if(!impl) return SVGRect(nullptr);
 	return SVGRect(impl->zoomRectScreen());
 }
 
@@ -80,7 +80,7 @@ float SVGZoomEvent::previousScale() const
 
 SVGPoint SVGZoomEvent::previousTranslate() const
 {
-	if(!impl) return SVGPoint(0);
+	if(!impl) return SVGPoint(nullptr);
 	return SVGPoint(impl->previousTranslate());
 }
 
@@ -92,6 +92,6 @@ float SVGZoomEvent::newScale() const
 
 SVGPoint SVGZoomEvent::newTranslate() const
 {
-	if(!impl) return SVGPoint(0);
+	if(!impl) return SVGPoint(nullptr);
 	return SVGPoint(impl->newTranslate());
 }
-- 
cgit v1.2.3

