From 3ea20cf58135deb3836bb1003c853bf79fe02adf 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 runtime components
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Group the implementation, runtime, and versioned generated metadata; preserve the generated-file provenance.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 ksvg/core/CanvasFactory.cpp                       |  18 +-
 ksvg/core/CanvasItem.h                            |   4 +-
 ksvg/core/CanvasItems.cpp                         |   6 +-
 ksvg/core/CanvasItems.h                           |   2 +-
 ksvg/core/DocumentFactory.cpp                     |   2 +-
 ksvg/core/KSVGCanvas.cpp                          |  14 +-
 ksvg/core/KSVGCanvas.h                            |   2 +-
 ksvg/core/KSVGLoader.cpp                          |  16 +-
 ksvg/core/KSVGReader.cpp                          |  28 +-
 ksvg/core/KSVGReader.h                            |   2 +-
 ksvg/ecma/ksvg_ecma.cpp                           |   8 +-
 ksvg/ecma/ksvg_ecmaeventlistener.cpp              |   2 +-
 ksvg/ecma/ksvg_lookup.h                           |   6 +-
 ksvg/ecma/ksvg_scriptinterpreter.cpp              |   2 +-
 ksvg/ecma/ksvg_window.cpp                         |   4 +-
 ksvg/impl/SVGAElementImpl.cpp                     |   2 +-
 ksvg/impl/SVGAnimatedLengthImpl.h                 |   2 +-
 ksvg/impl/SVGAnimationElementImpl.cpp             |   2 +-
 ksvg/impl/SVGBBoxTarget.cpp                       |   2 +-
 ksvg/impl/SVGCircleElementImpl.h                  |   2 +-
 ksvg/impl/SVGColorImpl.cpp                        |   4 +-
 ksvg/impl/SVGColorProfileElementImpl.cpp          |   2 +-
 ksvg/impl/SVGContainerImpl.h                      |   2 +-
 ksvg/impl/SVGDescElementImpl.h                    |   2 +-
 ksvg/impl/SVGDocumentImpl.cpp                     |  28 +-
 ksvg/impl/SVGDocumentImpl.h                       |   4 +-
 ksvg/impl/SVGElementImpl.cpp                      |  12 +-
 ksvg/impl/SVGElementImpl.h                        |   4 +-
 ksvg/impl/SVGElementInstanceImpl.cpp              |  16 +-
 ksvg/impl/SVGElementInstanceListImpl.cpp          |   2 +-
 ksvg/impl/SVGEllipseElementImpl.h                 |   2 +-
 ksvg/impl/SVGEventImpl.cpp                        |  12 +-
 ksvg/impl/SVGGradientElementImpl.cpp              |   2 +-
 ksvg/impl/SVGGradientElementImpl.h                |   2 +-
 ksvg/impl/SVGHelperImpl.cpp                       |   2 +-
 ksvg/impl/SVGHelperImpl.h                         |   2 +-
 ksvg/impl/SVGImageElementImpl.cpp                 |  14 +-
 ksvg/impl/SVGLengthImpl.cpp                       |   6 +-
 ksvg/impl/SVGLengthImpl.h                         |   2 +-
 ksvg/impl/SVGLineElementImpl.h                    |   2 +-
 ksvg/impl/SVGLocatableImpl.cpp                    |   4 +-
 ksvg/impl/SVGLocatableImpl.h                      |   2 +-
 ksvg/impl/SVGMarkerElementImpl.h                  |   2 +-
 ksvg/impl/SVGMaskElementImpl.cpp                  |  12 +-
 ksvg/impl/SVGMaskElementImpl.h                    |   2 +-
 ksvg/impl/SVGPaintServerImpl.cpp                  |   4 +-
 ksvg/impl/SVGPathElementImpl.cpp                  |   2 +-
 ksvg/impl/SVGPathElementImpl.h                    |   2 +-
 ksvg/impl/SVGPatternElementImpl.cpp               |  10 +-
 ksvg/impl/SVGPatternElementImpl.h                 |   2 +-
 ksvg/impl/SVGPolygonElementImpl.h                 |   2 +-
 ksvg/impl/SVGPolylineElementImpl.h                |   2 +-
 ksvg/impl/SVGRectElementImpl.h                    |   2 +-
 ksvg/impl/SVGSVGElementImpl.cpp                   |  24 +-
 ksvg/impl/SVGScriptElementImpl.cpp                |   6 +-
 ksvg/impl/SVGShapeImpl.cpp                        |   4 +-
 ksvg/impl/SVGStylableImpl.cpp                     |  34 +-
 ksvg/impl/SVGSwitchElementImpl.h                  |   2 +-
 ksvg/impl/SVGTextElementImpl.h                    |   2 +-
 ksvg/impl/SVGTimeScheduler.cpp                    |   4 +-
 ksvg/impl/SVGTitleElementImpl.h                   |   2 +-
 ksvg/impl/SVGTransformListImpl.cpp                |   4 +-
 ksvg/impl/SVGTransformableImpl.cpp                |   4 +-
 ksvg/impl/SVGUseElementImpl.cpp                   |  14 +-
 ksvg/impl/SVGViewSpecImpl.cpp                     |   2 +-
 ksvg/impl/SVGWindowImpl.cpp                       |   6 +-
 ksvg/impl/generateddata.cpp                       | 416 +++++++++++-----------
 ksvg/impl/libs/libtext2path/src/BezierPath.h      |   2 +-
 ksvg/impl/libs/libtext2path/src/Converter.cpp     |   8 +-
 ksvg/impl/libs/libtext2path/src/Converter.h       |   2 +-
 ksvg/impl/libs/libtext2path/src/Font.cpp          |  14 +-
 ksvg/impl/libs/libtext2path/src/Glyph.cpp         |   6 +-
 ksvg/impl/libs/libtext2path/src/GlyphTracer.cpp   |  10 +-
 ksvg/plugin/backends/libart/BezierPathLibart.h    |   2 +-
 ksvg/plugin/backends/libart/LibartCanvas.cpp      |  14 +-
 ksvg/plugin/backends/libart/LibartCanvasFactory.h |   2 +-
 ksvg/plugin/backends/libart/LibartCanvasItems.cpp |  60 ++--
 ksvg/plugin/backends/libart/LibartCanvasItems.h   |   2 +-
 ksvg/plugin/ksvg_factory.cpp                      |  18 +-
 ksvg/plugin/ksvg_factory.h                        |   4 +-
 ksvg/plugin/ksvg_plugin.cpp                       |   8 +-
 ksvg/plugin/ksvg_widget.cpp                       |   2 +-
 ksvg/test/external/printnodetest.cpp              |   2 +-
 ksvg/test/external/svgdisplay.cpp                 |   2 +-
 84 files changed, 489 insertions(+), 489 deletions(-)

diff --git a/ksvg/core/CanvasFactory.cpp b/ksvg/core/CanvasFactory.cpp
index f8b7fc50..b56b69df 100644
--- a/ksvg/core/CanvasFactory.cpp
+++ b/ksvg/core/CanvasFactory.cpp
@@ -29,7 +29,7 @@
 
 using namespace KSVG;
 
-CanvasFactory *CanvasFactory::s_factory = 0;
+CanvasFactory *CanvasFactory::s_factory = nullptr;
 
 CanvasFactory::CanvasFactory()
 {
@@ -70,7 +70,7 @@ void CanvasFactory::queryCanvas()
 
 		CanvasInfo *cinfo = new CanvasInfo();
 		cinfo->service = ptr;
-		cinfo->canvas = 0;
+		cinfo->canvas = nullptr;
 		cinfo->name = name;
 		cinfo->internal = internal;
 	
@@ -95,7 +95,7 @@ KSVGCanvas *CanvasFactory::loadCanvas(int width, int height)
 
 	TQPtrListIterator<CanvasInfo> it(m_canvasList);
 	CanvasInfo *info = it.current();
-	while((info = it.current()) != 0)
+	while((info = it.current()) != nullptr)
 	{
 		if(info->internal == load)
 		{
@@ -103,7 +103,7 @@ KSVGCanvas *CanvasFactory::loadCanvas(int width, int height)
 			args.prepend(TQString::number(width));
 			args.prepend(TQString::number(height));
 		
-			info->canvas = KParts::ComponentFactory::createInstanceFromLibrary<KSVGCanvas>(TQFile::encodeName(info->service->library()), 0, 0, args);
+			info->canvas = KParts::ComponentFactory::createInstanceFromLibrary<KSVGCanvas>(TQFile::encodeName(info->service->library()), nullptr, nullptr, args);
 
 			if(info->canvas)
 				return info->canvas;
@@ -117,7 +117,7 @@ KSVGCanvas *CanvasFactory::loadCanvas(int width, int height)
 		++it;
 	}
 
-	return 0;
+	return nullptr;
 }
 
 int CanvasFactory::itemInList(KSVGCanvas *canvas)
@@ -125,7 +125,7 @@ int CanvasFactory::itemInList(KSVGCanvas *canvas)
 	TQPtrListIterator<CanvasInfo> it(m_canvasList);
 	CanvasInfo *info = it.current();
 	unsigned int i = 0;
-	while((info = it.current()) != 0)
+	while((info = it.current()) != nullptr)
 	{
 		if(info->canvas == canvas)
 			return i;
@@ -141,7 +141,7 @@ TQString CanvasFactory::internalNameFor(const TQString &name)
 {
 	TQPtrListIterator<CanvasInfo> it(m_canvasList);
 	CanvasInfo *info = it.current();
-	while((info = it.current()) != 0)
+	while((info = it.current()) != nullptr)
 	{
 		if(info->name == name)
 			return info->internal;
@@ -156,12 +156,12 @@ void CanvasFactory::deleteCanvas(KSVGCanvas *canvas)
 {
 	TQPtrListIterator<CanvasInfo> it(m_canvasList);
 	CanvasInfo *info = it.current();
-	while((info = it.current()) != 0)
+	while((info = it.current()) != nullptr)
 	{
 		if(info->canvas == canvas)
 		{
 			delete info->canvas;
-			info->canvas = 0;
+			info->canvas = nullptr;
 		}
 
 		++it;
diff --git a/ksvg/core/CanvasItem.h b/ksvg/core/CanvasItem.h
index 0288400f..5c8be0cb 100644
--- a/ksvg/core/CanvasItem.h
+++ b/ksvg/core/CanvasItem.h
@@ -73,7 +73,7 @@ public:
 	void setReferenced(bool referenced) { m_referenced = referenced; }
 	bool referenced() const { return m_referenced; }
 
-	virtual SVGElementImpl *element() const { return 0; }
+	virtual SVGElementImpl *element() const { return nullptr; }
 
 protected:
 	unsigned int m_zIndex;
@@ -83,7 +83,7 @@ protected:
 class CanvasItemPtr
 {
 public:
-	CanvasItemPtr() : ptr(0) { }
+	CanvasItemPtr() : ptr(nullptr) { }
 	CanvasItemPtr(CanvasItem *p) : ptr(p) { }
 
 	bool operator<=(const CanvasItemPtr& that) const
diff --git a/ksvg/core/CanvasItems.cpp b/ksvg/core/CanvasItems.cpp
index cf605d9e..611961d9 100644
--- a/ksvg/core/CanvasItems.cpp
+++ b/ksvg/core/CanvasItems.cpp
@@ -166,7 +166,7 @@ void CanvasText::handleTSpan(KSVGCanvas *canvas, const SVGMatrixImpl *screenCTM,
 		else if(element->nodeName() == "tspan" || element->nodeName() == "tref")
 		{
 			tspanFound = true;
-			handleTSpan(canvas, screenCTM, curx, cury, endx, endy, element, textChunk, 0);
+			handleTSpan(canvas, screenCTM, curx, cury, endx, endy, element, textChunk, nullptr);
 		}
 	}
 
@@ -232,7 +232,7 @@ KSVGTextChunk *CanvasText::createTextChunk(KSVGCanvas *canvas, const SVGMatrixIm
 					TQString target = SVGURIReferenceImpl::getTarget(tpath->href()->baseVal().string());
 					SVGPathElementImpl *path = dynamic_cast<SVGPathElementImpl *>(tpath->ownerSVGElement()->getElementById(target));
 
-					T2P::BezierPath *bpath = 0;
+					T2P::BezierPath *bpath = nullptr;
 					if(path && path->item())
 						bpath = tpath->ownerDoc()->canvas()->toBezierPath(path->item());
 
@@ -276,7 +276,7 @@ KSVGTextChunk *CanvasText::createTextChunk(KSVGCanvas *canvas, const SVGMatrixIm
 					}
 				}
 				else if(element->nodeName() == "tspan" || element->nodeName() == "tref")
-					handleTSpan(canvas, screenCTM, curx, cury, endx, endy, element, textChunk, 0);
+					handleTSpan(canvas, screenCTM, curx, cury, endx, endy, element, textChunk, nullptr);
 			}
 		}
 	}
diff --git a/ksvg/core/CanvasItems.h b/ksvg/core/CanvasItems.h
index f9fe9762..eede8cb6 100644
--- a/ksvg/core/CanvasItems.h
+++ b/ksvg/core/CanvasItems.h
@@ -98,7 +98,7 @@ public:
 	virtual SVGElementImpl *element() const { return m_text; }
 
 	virtual void renderCallback(SVGTextContentElementImpl *element, const SVGMatrixImpl *screenCTM, T2P::GlyphSet *glyph, T2P::GlyphLayoutParams *params, double anchor) const = 0;
-	void createGlyphs(KSVGTextChunk *textChunk, KSVGCanvas *canvas, const SVGMatrixImpl *screenCTM, int curx, int cury, int &endx, int &endy, T2P::BezierPath *bpath = 0) const;
+	void createGlyphs(KSVGTextChunk *textChunk, KSVGCanvas *canvas, const SVGMatrixImpl *screenCTM, int curx, int cury, int &endx, int &endy, T2P::BezierPath *bpath = nullptr) const;
 
 	virtual void addTextDecoration(SVGTextContentElementImpl *element, double x, double y, double w, double h) const = 0;
 
diff --git a/ksvg/core/DocumentFactory.cpp b/ksvg/core/DocumentFactory.cpp
index f72e2299..229200c4 100644
--- a/ksvg/core/DocumentFactory.cpp
+++ b/ksvg/core/DocumentFactory.cpp
@@ -47,7 +47,7 @@ namespace KSVG
 }
 
 static KStaticDeleter<DocumentFactory> s_deleter;
-static DocumentFactory *s_factory = 0;
+static DocumentFactory *s_factory = nullptr;
 
 DocumentFactory::DocumentFactory() : m_d(new Private())
 {
diff --git a/ksvg/core/KSVGCanvas.cpp b/ksvg/core/KSVGCanvas.cpp
index 39ad9a20..97d3d809 100644
--- a/ksvg/core/KSVGCanvas.cpp
+++ b/ksvg/core/KSVGCanvas.cpp
@@ -52,7 +52,7 @@ using namespace KSVG;
 
 KSVGCanvas::KSVGCanvas(unsigned int width, unsigned int height) : m_viewportWidth(width), m_viewportHeight(height), m_width(width), m_height(height)
 {
-	m_fontContext = 0;
+	m_fontContext = nullptr;
 
 	m_items.setAutoDelete(true);
 
@@ -61,7 +61,7 @@ KSVGCanvas::KSVGCanvas(unsigned int width, unsigned int height) : m_viewportWidt
 
 	m_zoom = 1;
 
-	m_buffer = 0;
+	m_buffer = nullptr;
 
 	m_backgroundColor = TQColor(250, 250, 250);
 
@@ -73,13 +73,13 @@ void KSVGCanvas::setup(TQPaintDevice *drawWindow, TQPaintDevice *directWindow)
 	m_drawWindow = drawWindow;
 	m_directWindow = directWindow;
 
-	m_buffer = 0;
+	m_buffer = nullptr;
 	m_nrChannels = 3;
 
 	setRenderBufferSize(m_width, m_height);
 
 	xlib_rgb_init_with_depth(m_drawWindow->x11Display(), XScreenOfDisplay(m_drawWindow->x11Display(), m_drawWindow->x11Screen()), m_drawWindow->x11Depth());
-	m_gc = XCreateGC(m_drawWindow->x11Display(), m_drawWindow->handle(), 0, 0);
+	m_gc = XCreateGC(m_drawWindow->x11Display(), m_drawWindow->handle(), 0, nullptr);
 }
 
 void KSVGCanvas::setViewportDimension(unsigned int w, unsigned int h)
@@ -92,8 +92,8 @@ void KSVGCanvas::setViewportDimension(unsigned int w, unsigned int h)
 void KSVGCanvas::setup(unsigned char *buffer, unsigned int width, unsigned int height)
 {
 	setBuffer(buffer);
-	m_drawWindow = 0;
-	m_directWindow = 0;
+	m_drawWindow = nullptr;
+	m_directWindow = nullptr;
 
 	m_nrChannels = 4;
 
@@ -105,7 +105,7 @@ void KSVGCanvas::setup(unsigned char *buffer, unsigned int width, unsigned int h
 
 	setRenderBufferSize(m_width, m_height);
 
-	m_gc = 0;
+	m_gc = nullptr;
 }
 
 void KSVGCanvas::setBuffer(unsigned char *buffer)
diff --git a/ksvg/core/KSVGCanvas.h b/ksvg/core/KSVGCanvas.h
index 75ac574c..ba015cfd 100644
--- a/ksvg/core/KSVGCanvas.h
+++ b/ksvg/core/KSVGCanvas.h
@@ -124,7 +124,7 @@ public:
 	TQPaintDevice *directWindow() { return m_directWindow; }
 
 	T2P::FontVisualParams *fontVisualParams(SVGStylableImpl *style) const;
-	virtual T2P::BezierPath *toBezierPath(CanvasItem *item) const { Q_UNUSED(item); return 0; }
+	virtual T2P::BezierPath *toBezierPath(CanvasItem *item) const { Q_UNUSED(item); return nullptr; }
 
 	// Assign z indices to the element and its children, starting with z, and 
 	// return the next z value to be used.
diff --git a/ksvg/core/KSVGLoader.cpp b/ksvg/core/KSVGLoader.cpp
index 63b22d28..fc9750e5 100644
--- a/ksvg/core/KSVGLoader.cpp
+++ b/ksvg/core/KSVGLoader.cpp
@@ -39,7 +39,7 @@ using namespace KSVG;
 
 KSVGLoader::KSVGLoader() : m_data(0)
 {
-	m_job = 0;
+	m_job = nullptr;
 }
 
 KSVGLoader::~KSVGLoader()
@@ -49,7 +49,7 @@ KSVGLoader::~KSVGLoader()
 TQString KSVGLoader::loadXML(::KURL url)
 {
 	TQString tmpFile;
-	if(TDEIO::NetAccess::download(url, tmpFile, 0))
+	if(TDEIO::NetAccess::download(url, tmpFile, nullptr))
 	{
 		TQIODevice *dev = KFilterDev::deviceForFile(tmpFile, "application/x-gzip", true);
 		TQByteArray contents;
@@ -67,7 +67,7 @@ void KSVGLoader::getSVGContent(::KURL url)
 {
 	if(!url.prettyURL().isEmpty())
 	{
-		if(m_job == 0)
+		if(!m_job)
 			m_job = TDEIO::get(url, false, false);
 
 		m_job->setAutoErrorHandlingEnabled(true);
@@ -134,7 +134,7 @@ void KSVGLoader::slotResult(TDEIO::Job *job)
 			}
 			else
 			{
-				m_job = 0;
+				m_job = nullptr;
 				emit gotResult(new TQBuffer(m_data));
 				m_data.resize(0);
 			}
@@ -164,7 +164,7 @@ void KSVGLoader::slotResult(TDEIO::Job *job)
 				{
 					const char *imageFormat = TQImageIO::imageFormat(&buffer);
 
-					if(imageFormat != 0)
+					if(imageFormat)
 					{
 						TQImageIO imageIO(&buffer, imageFormat);
 
@@ -256,7 +256,7 @@ public:
 	{
 		kdDebug(26001) << "CharacterDataSearcher::characters, read " << ch.latin1() << endl;
 
-		if(m_tagFound != 0)
+		if(!m_tagFound.isNull())
 			m_result += ch;
 
 		return true;
@@ -296,8 +296,8 @@ public:
 
 	virtual bool startDocument()
 	{
-		m_result = 0;
-		m_currentNode = 0;
+		m_result = nullptr;
+		m_currentNode = nullptr;
 		
 		return true;
 	}
diff --git a/ksvg/core/KSVGReader.cpp b/ksvg/core/KSVGReader.cpp
index 9b465fa3..c970f9e1 100644
--- a/ksvg/core/KSVGReader.cpp
+++ b/ksvg/core/KSVGReader.cpp
@@ -41,7 +41,7 @@ namespace KSVG
 class Helper
 {
 public:
-	static Helper *self(KSVGReader *reader = 0);
+	static Helper *self(KSVGReader *reader = nullptr);
 
 	void destroy();
 
@@ -113,7 +113,7 @@ private:
 
 using namespace KSVG;
 
-Helper *Helper::m_instance = 0;
+Helper *Helper::m_instance = nullptr;
 
 Helper::Helper(KSVGReader *reader)
 {
@@ -122,11 +122,11 @@ Helper::Helper(KSVGReader *reader)
 
 Helper *Helper::self(KSVGReader *reader)
 {
-	if(m_instance && reader != 0)
+	if(m_instance && reader)
 		m_instance->m_reader = reader;
 	if(!m_instance)
 	{
-		Q_ASSERT(reader != 0);
+		Q_ASSERT(reader);
 		m_instance = new Helper(reader);
 	}
 
@@ -163,8 +163,8 @@ SVGSVGElementImpl *Helper::nextSVGElement(DOM::Node elem)
 
 bool InputHandler::startDocument()
 {
-	m_rootNode = 0;
-	m_currentNode = 0;
+	m_rootNode = nullptr;
+	m_currentNode = nullptr;
 	m_noRendering = false;
 
 	TDESimpleConfig config("ksvgpluginrc");
@@ -218,8 +218,8 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 {
 	kdDebug(26001) << "InputHandler::startElement, namespaceURI " << namespaceURI << " qName " << qName << endl;
 
-	SVGElementImpl *newElement = 0;
-	SVGSVGElementImpl *svg = 0;
+	SVGElementImpl *newElement = nullptr;
+	SVGSVGElementImpl *svg = nullptr;
 
 	if(qName == "svg")
 	{
@@ -230,7 +230,7 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 		Helper::self()->addSVGElement(svg, impl.handle());
 
 		// Need this before we can find our ownerSVGElement (AP)
-		if(m_currentNode != 0)
+		if(m_currentNode)
 		{
 			m_currentNode->appendChild(*svg);
 		}
@@ -268,7 +268,7 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 			}
 		}
 
-		if(m_rootNode == 0)
+		if(!m_rootNode)
 		{
 			Helper::self()->doc()->appendChild(*svg);
 			Helper::self()->doc()->setRootElement(svg);
@@ -289,7 +289,7 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 
 		// m_currentNode == 0 if we are dynamically extending the dom (parsexml...)
 		// and the file doesn't have a root element
-		if(m_currentNode != 0)
+		if(m_currentNode)
 			m_currentNode->appendChild(*newElement);
 		else
 			Helper::self()->doc()->appendChild(*newElement);
@@ -304,7 +304,7 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 
 	newElement->setAttributes(attrs);
 
-	if(svg && svg->ownerSVGElement() == 0)
+	if(svg && !svg->ownerSVGElement())
 	{
 		SVGImageElementImpl *parentImage = Helper::self()->doc()->parentImage();
 
@@ -321,7 +321,7 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 	if(locatable)
 	{
 		// Set up the cached screenCTM
-		SVGLocatableImpl *locatableParent = 0;
+		SVGLocatableImpl *locatableParent = nullptr;
 		DOM::Node parentNode = newElement->parentNode();
 
 		if(!parentNode.isNull())
@@ -332,7 +332,7 @@ bool InputHandler::startElement(const TQString &namespaceURI, const TQString &,
 				locatableParent = dynamic_cast<SVGLocatableImpl *>(parent);
 		}
 
-		SVGMatrixImpl *parentMatrix = 0;
+		SVGMatrixImpl *parentMatrix = nullptr;
 
 		if(locatableParent)
 			parentMatrix = locatableParent->getScreenCTM();
diff --git a/ksvg/core/KSVGReader.h b/ksvg/core/KSVGReader.h
index 226124b0..c1ec8b77 100644
--- a/ksvg/core/KSVGReader.h
+++ b/ksvg/core/KSVGReader.h
@@ -56,7 +56,7 @@ protected:
 	SVGDocumentImpl *doc();
 	KSVGCanvas *canvas();
 
-	void setFinished(bool error, const TQString &errorDesc = 0);
+	void setFinished(bool error, const TQString &errorDesc = nullptr);
 
 private:
 	struct Private;
diff --git a/ksvg/ecma/ksvg_ecma.cpp b/ksvg/ecma/ksvg_ecma.cpp
index 3a2d0914..ccca7800 100644
--- a/ksvg/ecma/ksvg_ecma.cpp
+++ b/ksvg/ecma/ksvg_ecma.cpp
@@ -62,8 +62,8 @@ KSVGEcma::KSVGEcma(SVGDocumentImpl *doc) : m_doc(doc)
 	m_init = false;
 	m_hasListeners = false;
 
-	m_window = 0;
-	m_interpreter = 0;
+	m_window = nullptr;
+	m_interpreter = nullptr;
 
 	m_ecmaEventListeners.setAutoDelete(true);
 }
@@ -234,7 +234,7 @@ void KSVGEcma::postUrl(ExecState *exec, ::KURL url, const TQString &data, const
 // Helpers
 Value KSVG::getDOMNode(ExecState *exec, DOM::Node n)
 {
-	ObjectImp *ret = 0;
+	ObjectImp *ret = nullptr;
 	if(n.isNull())
 		return Null();
 
@@ -244,7 +244,7 @@ Value KSVG::getDOMNode(ExecState *exec, DOM::Node n)
 	if(request)
 		return Value(request);
 
-	SVGElementImpl *elem = 0;
+	SVGElementImpl *elem = nullptr;
 
 	switch(n.nodeType())
 	{
diff --git a/ksvg/ecma/ksvg_ecmaeventlistener.cpp b/ksvg/ecma/ksvg_ecmaeventlistener.cpp
index 4a02fd04..6ea26cee 100644
--- a/ksvg/ecma/ksvg_ecmaeventlistener.cpp
+++ b/ksvg/ecma/ksvg_ecmaeventlistener.cpp
@@ -71,7 +71,7 @@ void KSVGEcmaEventListener::handleEvent(SVGEventImpl *evt)
 		Object thisObj = Object::dynamicCast(getDOMNode(exec, *evt->currentTarget()));
 		Value retval = m_listener.call(exec, thisObj, args);
 
-		interpreter->setCurrentEvent(0);
+		interpreter->setCurrentEvent(nullptr);
 		
 		if(exec->hadException())
 		{
diff --git a/ksvg/ecma/ksvg_lookup.h b/ksvg/ecma/ksvg_lookup.h
index 9280366b..0fc05ef0 100644
--- a/ksvg/ecma/ksvg_lookup.h
+++ b/ksvg/ecma/ksvg_lookup.h
@@ -92,7 +92,7 @@ public: \
 // For classes which need to be accessable with getElementById -> elements
 #define KSVG_NO_TAG_BRIDGE \
 public: \
-	KJS::ObjectImp *bridge(KJS::ExecState *) const { return 0; }
+	KJS::ObjectImp *bridge(KJS::ExecState *) const { return nullptr; }
 
 #define KSVG_BRIDGE \
 public: \
@@ -254,7 +254,7 @@ namespace KSVG
     { \
       return KJS::cacheGlobalObject<ClassProto>( exec, "[[" ClassName ".prototype]]" ); \
     } \
-    const KJS::ClassInfo ClassProto::info = { ClassName, 0, &s_hashTable, 0 }; \
+    const KJS::ClassInfo ClassProto::info = { ClassName, nullptr, &s_hashTable, nullptr }; \
 
 // same as KSVG_IMPLEMENT_PROTOTYPE but with a parent class to forward calls to
 // Not used within KSVG up to now - each class does a self proto lookup in generateddata.cpp
@@ -276,7 +276,7 @@ namespace KSVG
     { \
       return KJS::cacheGlobalObject<ClassProto>( exec, "[[" ClassName ".prototype]]" ); \
     } \
-    const KJS::ClassInfo ClassProto::info = { ClassName, 0, &s_hashTable, 0 }; \
+    const KJS::ClassInfo ClassProto::info = { ClassName, nullptr, &s_hashTable, nullptr }; \
 
 #define KSVG_IMPLEMENT_PROTOFUNC(ClassFunc,Class) \
   namespace KSVG { \
diff --git a/ksvg/ecma/ksvg_scriptinterpreter.cpp b/ksvg/ecma/ksvg_scriptinterpreter.cpp
index 7ed91c5f..eead0705 100644
--- a/ksvg/ecma/ksvg_scriptinterpreter.cpp
+++ b/ksvg/ecma/ksvg_scriptinterpreter.cpp
@@ -27,7 +27,7 @@ using namespace KJS;
 
 KSVGScriptInterpreter::KSVGScriptInterpreter(const Object &global, SVGDocumentImpl *doc) : Interpreter(global), m_document(doc)
 {
-	m_evt = 0;
+	m_evt = nullptr;
 	
 	m_attributeGetMode = false;
 	m_attributeSetMode = false;
diff --git a/ksvg/ecma/ksvg_window.cpp b/ksvg/ecma/ksvg_window.cpp
index 8afce843..844b8711 100644
--- a/ksvg/ecma/ksvg_window.cpp
+++ b/ksvg/ecma/ksvg_window.cpp
@@ -104,7 +104,7 @@ using namespace KSVG;
 
 KSVG_IMPLEMENT_PROTOFUNC(WindowFunc, Window)
 
-const ClassInfo KSVG::Window::s_classInfo = { "Window", 0, &s_hashTable, 0 };
+const ClassInfo KSVG::Window::s_classInfo = { "Window", nullptr, &s_hashTable, nullptr };
 
 KSVG::Window::Window(KSVG::SVGDocumentImpl *p) : ObjectImp(), m_doc(p)
 {
@@ -355,7 +355,7 @@ Value WindowFunc::call(ExecState *exec, Object &thisObj, const List &args)
 		{
 			SVGDocumentImpl *doc = new SVGDocumentImpl();
 			doc->ref();
-			doc->attach(0);
+			doc->attach(nullptr);
 
 			// So we can find it later...
 			(const_cast<Window *>(window))->doc()->addToDocumentDict(doc->handle(), doc);
diff --git a/ksvg/impl/SVGAElementImpl.cpp b/ksvg/impl/SVGAElementImpl.cpp
index 0885f254..b33f179d 100644
--- a/ksvg/impl/SVGAElementImpl.cpp
+++ b/ksvg/impl/SVGAElementImpl.cpp
@@ -111,5 +111,5 @@ SVGAElementImpl *SVGAElementImpl::getLink(SVGElementImpl *sourceElem)
 		}
 	}
 
-	return 0;
+	return nullptr;
 }
diff --git a/ksvg/impl/SVGAnimatedLengthImpl.h b/ksvg/impl/SVGAnimatedLengthImpl.h
index a553229d..89d7179c 100644
--- a/ksvg/impl/SVGAnimatedLengthImpl.h
+++ b/ksvg/impl/SVGAnimatedLengthImpl.h
@@ -33,7 +33,7 @@ class SVGElementImpl;
 class SVGAnimatedLengthImpl : public DOM::DomShared
 {
 public:
-	SVGAnimatedLengthImpl(LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *object = 0);
+	SVGAnimatedLengthImpl(LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *object = nullptr);
 	SVGAnimatedLengthImpl(const SVGAnimatedLengthImpl &);
 	virtual ~SVGAnimatedLengthImpl();
 
diff --git a/ksvg/impl/SVGAnimationElementImpl.cpp b/ksvg/impl/SVGAnimationElementImpl.cpp
index b87a9829..786e51dc 100644
--- a/ksvg/impl/SVGAnimationElementImpl.cpp
+++ b/ksvg/impl/SVGAnimationElementImpl.cpp
@@ -43,7 +43,7 @@ SVGAnimationElementImpl::SVGAnimationElementImpl(DOM::ElementImpl *impl) : SVGEl
 	KSVG_EMPTY_FLAGS
 
 	m_connected = false;
-	m_targetElement = 0;
+	m_targetElement = nullptr;
 
 	m_values = new SVGStringListImpl();
 	m_keyTimes= new SVGStringListImpl();
diff --git a/ksvg/impl/SVGBBoxTarget.cpp b/ksvg/impl/SVGBBoxTarget.cpp
index 7d690373..26ae79f1 100644
--- a/ksvg/impl/SVGBBoxTarget.cpp
+++ b/ksvg/impl/SVGBBoxTarget.cpp
@@ -27,7 +27,7 @@ using namespace KSVG;
 
 SVGBBoxTarget::SVGBBoxTarget()
 {
-	m_target = 0;
+	m_target = nullptr;
 }
 
 SVGBBoxTarget::~SVGBBoxTarget()
diff --git a/ksvg/impl/SVGCircleElementImpl.h b/ksvg/impl/SVGCircleElementImpl.h
index 1bb009a4..7e22fb3a 100644
--- a/ksvg/impl/SVGCircleElementImpl.h
+++ b/ksvg/impl/SVGCircleElementImpl.h
@@ -50,7 +50,7 @@ public:
 	SVGAnimatedLengthImpl *cy();
 	SVGAnimatedLengthImpl *r();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void setAttributes();
 
 	virtual SVGRectImpl *getBBox();
diff --git a/ksvg/impl/SVGColorImpl.cpp b/ksvg/impl/SVGColorImpl.cpp
index c5c44bcc..b30fb120 100644
--- a/ksvg/impl/SVGColorImpl.cpp
+++ b/ksvg/impl/SVGColorImpl.cpp
@@ -43,7 +43,7 @@ using namespace KSVG;
 SVGColorImpl::SVGColorImpl(SVGElementImpl *object) : m_object(object)
 {
 	m_colorType = SVG_COLORTYPE_UNKNOWN;
-	m_iccColor = 0;
+	m_iccColor = nullptr;
 }
 
 SVGColorImpl::SVGColorImpl(const SVGColorImpl &other) : DOM::DomShared()
@@ -407,7 +407,7 @@ void SVGColorImpl::setRGBColorICCColor(const DOM::DOMString &rgbColor, const DOM
 
 	iccTarget = SVGURIReferenceImpl::getTarget(iccTarget);
 
-	SVGColorProfileElementImpl *handle = 0;
+	SVGColorProfileElementImpl *handle = nullptr;
 	if(m_object)
 		handle = static_cast<SVGColorProfileElementImpl *>(dynamic_cast<SVGElementImpl *>(m_object)->ownerDoc()->rootElement()->getElementById(iccTarget));
 
diff --git a/ksvg/impl/SVGColorProfileElementImpl.cpp b/ksvg/impl/SVGColorProfileElementImpl.cpp
index 89770494..00a5138d 100644
--- a/ksvg/impl/SVGColorProfileElementImpl.cpp
+++ b/ksvg/impl/SVGColorProfileElementImpl.cpp
@@ -186,7 +186,7 @@ bool SVGColorProfileElementImpl::canLoad(bool remote, bool &tempFile, TQString &
 	{
 		if(remote)
 		{
-			if(TDEIO::NetAccess::download(file, open, 0))
+			if(TDEIO::NetAccess::download(file, open, nullptr))
 				tempFile = true;
 		}
 	}
diff --git a/ksvg/impl/SVGContainerImpl.h b/ksvg/impl/SVGContainerImpl.h
index b4ad6e9b..0386f0b0 100644
--- a/ksvg/impl/SVGContainerImpl.h
+++ b/ksvg/impl/SVGContainerImpl.h
@@ -36,7 +36,7 @@ public:
 
 	virtual bool isContainer() const { return true; }
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void removeItem(KSVGCanvas *c);
 
 	virtual void update(CanvasItemUpdate reason, int param1, int param2);
diff --git a/ksvg/impl/SVGDescElementImpl.h b/ksvg/impl/SVGDescElementImpl.h
index f7ff5ae1..b2bfe738 100644
--- a/ksvg/impl/SVGDescElementImpl.h
+++ b/ksvg/impl/SVGDescElementImpl.h
@@ -38,7 +38,7 @@ public:
 	SVGDescElementImpl(DOM::ElementImpl *impl);
 	virtual ~SVGDescElementImpl();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 
 public:
 	KSVG_BRIDGE
diff --git a/ksvg/impl/SVGDocumentImpl.cpp b/ksvg/impl/SVGDocumentImpl.cpp
index ce3c1341..4e188026 100644
--- a/ksvg/impl/SVGDocumentImpl.cpp
+++ b/ksvg/impl/SVGDocumentImpl.cpp
@@ -78,12 +78,12 @@ SVGDocumentImpl::SVGDocumentImpl(bool anim, bool fit, SVGImageElementImpl *paren
 {
 	m_animations = anim;
 
-	m_reader = 0;
-	m_loader = 0;
-	m_canvas = 0;
-	m_rootElement = 0;
-	m_lastTarget = 0;
-	m_window = 0;
+	m_reader = nullptr;
+	m_loader = nullptr;
+	m_canvas = nullptr;
+	m_rootElement = nullptr;
+	m_lastTarget = nullptr;
+	m_window = nullptr;
 
 	m_elemDictHashSizeIndex = 0;
 	m_elemDict.resize(elemDictHashSizes[m_elemDictHashSizeIndex]);
@@ -117,7 +117,7 @@ SVGDocumentImpl::~SVGDocumentImpl()
 			killList.append(shape);
 	}
 
-	SVGShapeImpl *rend = 0;
+	SVGShapeImpl *rend = nullptr;
 	for(rend = killList.first(); rend; rend = killList.next())
 		delete rend;
 
@@ -276,7 +276,7 @@ void SVGDocumentImpl::parseSVG(TQXmlInputSource *inputSource, bool getURLMode)
 	KSVGReader::ParsingArgs args;
 	args.fit = m_fit;
 	args.getURLMode = getURLMode;
-	m_reader = new KSVGReader(this, 0, args);
+	m_reader = new KSVGReader(this, nullptr, args);
 	connect(m_reader, TQ_SIGNAL(finished(bool, const TQString &)), this, TQ_SLOT(slotFinishedParsing(bool, const TQString &)));
 	
 #if USE_VALGRIND
@@ -345,7 +345,7 @@ void SVGDocumentImpl::checkFinishedLoading()
 			// Only resort if we're the 'outermost' document, i.e. we're not an svg image
 			// inside another document. We could resort as each image finishes loading, but it
 			// slows down the parsing phase.
-			if(m_parentImage == 0 && m_canvas && m_rootElement)
+			if(!m_parentImage && m_canvas && m_rootElement)
 			{
 				m_canvas->setElementItemZIndexRecursive(m_rootElement, 0);
 				m_canvas->update();
@@ -380,7 +380,7 @@ void SVGDocumentImpl::attach(KSVG::KSVGCanvas *c)
 
 void SVGDocumentImpl::detach()
 {
-	m_canvas = 0;
+	m_canvas = nullptr;
 }
 
 KSVG::KSVGCanvas *SVGDocumentImpl::canvas() const
@@ -529,7 +529,7 @@ SVGElementImpl *SVGDocumentImpl::recursiveSearch(DOM::Node start, const DOM::DOM
 		}
 	}
 
-	return 0;
+	return nullptr;
 }
 
 /*
@@ -593,7 +593,7 @@ Value SVGDocumentImplProtoFunc::call(ExecState *exec, Object &thisObj, const Lis
 		case SVGDocumentImpl::CreateElement:
 		case SVGDocumentImpl::CreateElementNS:
 		{
-			SVGElementImpl *newElement = 0;
+			SVGElementImpl *newElement = nullptr;
 
 			if(id == SVGDocumentImpl::CreateElement)
 				newElement = obj->createElement(args[0].toString(exec).qstring(), static_cast<DOM::Document *>(obj)->createElement(args[0].toString(exec).string()), obj);
@@ -670,7 +670,7 @@ void SVGDocumentImpl::addToDocumentDict(DOM::NodeImpl *handle, SVGDocumentImpl *
 
 SVGElementImpl *SVGDocumentImpl::getElementByIdRecursive(SVGSVGElementImpl *start, const DOM::DOMString &elementId, bool dontSearch)
 {
-	SVGElementImpl *element = 0;
+	SVGElementImpl *element = nullptr;
 	
 	// #1 Look in passed SVGSVGElementImpl
 	if(start)
@@ -693,7 +693,7 @@ SVGElementImpl *SVGDocumentImpl::getElementByIdRecursive(SVGSVGElementImpl *star
 		TQPtrDictIterator<SVGDocumentImpl> it(m_documentDict);
 		for(; it.current(); ++it)
 		{
-			SVGElementImpl *temp = it.current()->getElementByIdRecursive(0, elementId, true);
+			SVGElementImpl *temp = it.current()->getElementByIdRecursive(nullptr, elementId, true);
 			if(temp)
 				return temp;
 		}
diff --git a/ksvg/impl/SVGDocumentImpl.h b/ksvg/impl/SVGDocumentImpl.h
index 58babf96..1027ecdc 100644
--- a/ksvg/impl/SVGDocumentImpl.h
+++ b/ksvg/impl/SVGDocumentImpl.h
@@ -74,7 +74,7 @@ class SVGDocumentImpl : public TQObject,
 TQ_OBJECT
   
 public:
-	SVGDocumentImpl(bool anim = true, bool bFit = false, SVGImageElementImpl *parentImage = 0);
+	SVGDocumentImpl(bool anim = true, bool bFit = false, SVGImageElementImpl *parentImage = nullptr);
 	virtual ~SVGDocumentImpl();
 
 	float screenPixelsPerMillimeterX() const;
@@ -94,7 +94,7 @@ public:
 
 	SVGWindowImpl *window();
 
-	static SVGElementImpl *createElement(const DOM::DOMString &name, DOM::Element impl, SVGDocumentImpl *doc = 0);
+	static SVGElementImpl *createElement(const DOM::DOMString &name, DOM::Element impl, SVGDocumentImpl *doc = nullptr);
 
 	bool open(const KURL &url);
 	void rerender();
diff --git a/ksvg/impl/SVGElementImpl.cpp b/ksvg/impl/SVGElementImpl.cpp
index 523c5807..bd783565 100644
--- a/ksvg/impl/SVGElementImpl.cpp
+++ b/ksvg/impl/SVGElementImpl.cpp
@@ -35,15 +35,15 @@ using namespace KSVG;
 #include "ksvg_scriptinterpreter.h"
 #include "ksvg_ecma.h"
 
-SVGElementImpl::Factory *SVGElementImpl::Factory::m_instance = 0;
+SVGElementImpl::Factory *SVGElementImpl::Factory::m_instance = nullptr;
 
 SVGElementImpl::SVGElementImpl(DOM::ElementImpl *impl) : DOM::DomShared(), DOM::Element(impl), SVGDOMElementBridge(static_cast<DOM::Element>(*this))
 {
 	KSVG_EMPTY_FLAGS
 
-	m_ownerSVGElement = 0;
-	m_viewportElement = 0;
-	m_ownerDoc = 0;
+	m_ownerSVGElement = nullptr;
+	m_viewportElement = nullptr;
+	m_ownerDoc = nullptr;
 
 	m_mouseOver = false;
 	m_focus = false;
@@ -368,7 +368,7 @@ DOM::DOMString SVGElementImpl::getAttributeInternal(const DOM::DOMString &name)
 
 bool SVGElementImpl::hasAttribute(const DOM::DOMString &name)
 {
-	return m_attributes.find(name.string()) != 0;
+	return m_attributes.find(name.string()) != nullptr;
 }
 
 bool SVGElementImpl::hasAttributes()
@@ -562,7 +562,7 @@ bool SVGElementImpl::dispatchEvent(SVGEventImpl *evt, bool tempEvent)
 		}
 	}
 
-	evt->setCurrentTarget(0);
+	evt->setCurrentTarget(nullptr);
 	evt->setEventPhase(0); // I guess this is correct, the spec does not seem to say
 						   // anything about the default event handler phase.
 	
diff --git a/ksvg/impl/SVGElementImpl.h b/ksvg/impl/SVGElementImpl.h
index c2623d18..87d35816 100644
--- a/ksvg/impl/SVGElementImpl.h
+++ b/ksvg/impl/SVGElementImpl.h
@@ -123,7 +123,7 @@ public:
 
 	virtual bool prepareMouseEvent(const TQPoint &, const TQPoint &, SVGMouseEventImpl *);
 
-	virtual void createItem(KSVGCanvas *c = 0) { Q_UNUSED(c); }
+	virtual void createItem(KSVGCanvas *c = nullptr) { Q_UNUSED(c); }
 	virtual void removeItem(KSVGCanvas *c) { Q_UNUSED(c); }
 
 	// Element creation
@@ -150,7 +150,7 @@ public:
 			ElementMap::const_iterator it = m_elementMap.find(tag);
 			if(it != m_elementMap.end())
 				return it->second(impl);
-			return 0;
+			return nullptr;
 		}
 
 	private:
diff --git a/ksvg/impl/SVGElementInstanceImpl.cpp b/ksvg/impl/SVGElementInstanceImpl.cpp
index bd1fc58d..fcadec66 100644
--- a/ksvg/impl/SVGElementInstanceImpl.cpp
+++ b/ksvg/impl/SVGElementInstanceImpl.cpp
@@ -27,14 +27,14 @@ using namespace KSVG;
 
 SVGElementInstanceImpl::SVGElementInstanceImpl()//FIXME : events::EventTarget()
 {
-	m_correspondingElement = 0;
-	m_correspondingUseElement = 0;
-	m_parentNode = 0;
-	m_childNodes = 0;
-	m_firstChild = 0;
-	m_lastChild = 0;
-	m_previousSibling = 0;
-	m_nextSibling = 0;
+	m_correspondingElement = nullptr;
+	m_correspondingUseElement = nullptr;
+	m_parentNode = nullptr;
+	m_childNodes = nullptr;
+	m_firstChild = nullptr;
+	m_lastChild = nullptr;
+	m_previousSibling = nullptr;
+	m_nextSibling = nullptr;
 }
 
 SVGElementInstanceImpl::~SVGElementInstanceImpl()
diff --git a/ksvg/impl/SVGElementInstanceListImpl.cpp b/ksvg/impl/SVGElementInstanceListImpl.cpp
index c0748008..5e11d6eb 100644
--- a/ksvg/impl/SVGElementInstanceListImpl.cpp
+++ b/ksvg/impl/SVGElementInstanceListImpl.cpp
@@ -38,5 +38,5 @@ unsigned long SVGElementInstanceListImpl::length() const
 
 SVGElementInstanceImpl *SVGElementInstanceListImpl::item(unsigned long /*index*/)
 {
-	return 0;
+	return nullptr;
 }
diff --git a/ksvg/impl/SVGEllipseElementImpl.h b/ksvg/impl/SVGEllipseElementImpl.h
index 8803ebc5..8e1076c9 100644
--- a/ksvg/impl/SVGEllipseElementImpl.h
+++ b/ksvg/impl/SVGEllipseElementImpl.h
@@ -51,7 +51,7 @@ public:
 	SVGAnimatedLengthImpl *rx();
 	SVGAnimatedLengthImpl *ry();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void setAttributes();
 
 	virtual SVGRectImpl *getBBox();
diff --git a/ksvg/impl/SVGEventImpl.cpp b/ksvg/impl/SVGEventImpl.cpp
index 9ff61abc..a073213f 100644
--- a/ksvg/impl/SVGEventImpl.cpp
+++ b/ksvg/impl/SVGEventImpl.cpp
@@ -46,8 +46,8 @@ SVGEventImpl::SVGEventImpl()
 	m_createTime = TQDateTime::currentDateTime();
 	m_defaultHandled = false;
 
-	m_target = 0;
-	m_currentTarget = 0;
+	m_target = nullptr;
+	m_currentTarget = nullptr;
 }
 
 SVGEventImpl::SVGEventImpl(SVGEvent::EventId _id, bool canBubbleArg, bool cancelableArg)
@@ -65,8 +65,8 @@ SVGEventImpl::SVGEventImpl(SVGEvent::EventId _id, bool canBubbleArg, bool cancel
 	m_createTime = TQDateTime::currentDateTime();
 	m_defaultHandled = false;
 
-	m_target = 0;
-	m_currentTarget = 0;
+	m_target = nullptr;
+	m_currentTarget = nullptr;
 }
 
 SVGEventImpl::~SVGEventImpl()
@@ -338,7 +338,7 @@ Value SVGUIEventImplProtoFunc::call(ExecState *exec, Object &thisObj, const List
 
 SVGKeyEventImpl::SVGKeyEventImpl() : SVGUIEventImpl()
 {
-	qKeyEvent = 0;
+	qKeyEvent = nullptr;
 }
 
 SVGKeyEventImpl::SVGKeyEventImpl(TQKeyEvent *key, DOM::AbstractView &view, SVGEvent::EventId _id) : SVGUIEventImpl(_id, true, true, view, 0)
@@ -533,7 +533,7 @@ SVGKeyEventImpl::SVGKeyEventImpl(SVGEvent::EventId _id,
 		bool numPadArg)
 : SVGUIEventImpl(_id, canBubbleArg, cancelableArg, viewArg, detailArg)
 {
-	qKeyEvent = 0;
+	qKeyEvent = nullptr;
 	m_keyVal = keyValArg;
 	m_virtKeyVal = virtKeyValArg;
 	m_inputGenerated = inputGeneratedArg;
diff --git a/ksvg/impl/SVGGradientElementImpl.cpp b/ksvg/impl/SVGGradientElementImpl.cpp
index b59679e2..8d5e30d6 100644
--- a/ksvg/impl/SVGGradientElementImpl.cpp
+++ b/ksvg/impl/SVGGradientElementImpl.cpp
@@ -236,7 +236,7 @@ void SVGGradientElementImpl::createItem(KSVGCanvas *c)
 void SVGGradientElementImpl::removeItem(KSVGCanvas *)
 {
 	delete m_paintServer;
-	m_paintServer = 0;
+	m_paintServer = nullptr;
 }
 
 /*
diff --git a/ksvg/impl/SVGGradientElementImpl.h b/ksvg/impl/SVGGradientElementImpl.h
index d560cd17..abe74d1d 100644
--- a/ksvg/impl/SVGGradientElementImpl.h
+++ b/ksvg/impl/SVGGradientElementImpl.h
@@ -53,7 +53,7 @@ public:
 
 	virtual void setAttributes();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void removeItem(KSVGCanvas *c);
 
 	SVGUnitConverter *converter() const { return m_converter; }
diff --git a/ksvg/impl/SVGHelperImpl.cpp b/ksvg/impl/SVGHelperImpl.cpp
index fb546fbe..45ca4f6b 100644
--- a/ksvg/impl/SVGHelperImpl.cpp
+++ b/ksvg/impl/SVGHelperImpl.cpp
@@ -116,7 +116,7 @@ void SVGHelperImpl::parseLengthList(SVGAnimatedLengthListImpl *list, const TQStr
 	TQStringList::ConstIterator it = sublengths.begin();
 	TQStringList::ConstIterator end = sublengths.end();
 	
-	SVGLengthImpl *lengthImpl = 0;
+	SVGLengthImpl *lengthImpl = nullptr;
 	for(; it != end; ++it)
 	{
 		lengthImpl = new SVGLengthImpl(mode, object);
diff --git a/ksvg/impl/SVGHelperImpl.h b/ksvg/impl/SVGHelperImpl.h
index 873526e5..a43d000d 100644
--- a/ksvg/impl/SVGHelperImpl.h
+++ b/ksvg/impl/SVGHelperImpl.h
@@ -67,7 +67,7 @@ public:
 	static void copyAttributes(SVGElementImpl *src, SVGElementImpl *dst);
 
 	// SVGAnimatedLengthList
-	static void parseLengthList(SVGAnimatedLengthListImpl *list, const TQString &lengths, LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *object = 0);
+	static void parseLengthList(SVGAnimatedLengthListImpl *list, const TQString &lengths, LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *object = nullptr);
 
 	// SVGStringList
 	static void parseList(SVGStringListImpl *list, char seperator, const TQString &data);
diff --git a/ksvg/impl/SVGImageElementImpl.cpp b/ksvg/impl/SVGImageElementImpl.cpp
index c33d3737..19d3734d 100644
--- a/ksvg/impl/SVGImageElementImpl.cpp
+++ b/ksvg/impl/SVGImageElementImpl.cpp
@@ -71,12 +71,12 @@ SVGImageElementImpl::SVGImageElementImpl(DOM::ElementImpl *impl) : TQObject(), S
 	m_height->ref();
 	m_height->baseVal()->setValueAsString("-1");
 
-	m_preserveAspectRatio = 0;
+	m_preserveAspectRatio = nullptr;
 
-	m_doc = 0;
-	m_image = 0;
-	m_svgRoot = 0;
-	m_colorProfile = 0;
+	m_doc = nullptr;
+	m_image = nullptr;
+	m_svgRoot = nullptr;
+	m_colorProfile = nullptr;
 	m_colorProfileApplied = false;
 }
 
@@ -313,7 +313,7 @@ void SVGImageElementImpl::removeItem(KSVGCanvas *c)
 			m_svgRoot->removeItem(c);
 
 		c->removeItem(m_item);
-		m_item = 0;
+		m_item = nullptr;
 	}
 }
 
@@ -398,7 +398,7 @@ void SVGImageElementImpl::setImage(TQImage *image)
 	{
 		*m_image = m_image->convertDepth(32);
 
-		if(m_colorProfile != 0 && !m_colorProfileApplied)
+		if(m_colorProfile && !m_colorProfileApplied)
 		{
 			m_colorProfileApplied = true;
 			applyColorProfile();
diff --git a/ksvg/impl/SVGLengthImpl.cpp b/ksvg/impl/SVGLengthImpl.cpp
index 36789ffe..5b3dcbdf 100644
--- a/ksvg/impl/SVGLengthImpl.cpp
+++ b/ksvg/impl/SVGLengthImpl.cpp
@@ -60,7 +60,7 @@ SVGLengthImpl::SVGLengthImpl(LengthMode mode, SVGElementImpl *context) : DOM::Do
 	m_unitType = SVG_LENGTHTYPE_UNKNOWN;
 	m_value = 0;
 	m_valueInSpecifiedUnits = 0;
-	m_bboxContext = 0;
+	m_bboxContext = nullptr;
 }
 
 SVGLengthImpl::SVGLengthImpl(const SVGLengthImpl &other) : DOM::DomShared()
@@ -114,7 +114,7 @@ float SVGLengthImpl::value()
 	if(m_unitType == SVG_LENGTHTYPE_PERCENTAGE)
 	{
 		float value = m_valueInSpecifiedUnits / 100.0;
-		SVGRectImpl *bbox = 0;
+		SVGRectImpl *bbox = nullptr;
 		if(m_bboxContext && (bbox = m_bboxContext->getBBox()))
 		{
 			float result = 0;
@@ -282,7 +282,7 @@ void SVGLengthImpl::convertNumToPx()
 				bool sizeLocal = (style->getFontSize() != -1);
 				bool familyLocal = (style->getFontFamily() && style->getFontFamily()->getFirst());
 				
-				SVGStylableImpl *parentStyle = 0;
+				SVGStylableImpl *parentStyle = nullptr;
 				if((!sizeLocal || !familyLocal) && m_context)
 						parentStyle = dynamic_cast<SVGStylableImpl *>(m_context->ownerDoc()->getElementFromHandle(m_context->parentNode().handle()));
 				
diff --git a/ksvg/impl/SVGLengthImpl.h b/ksvg/impl/SVGLengthImpl.h
index 0bd29cee..e387c142 100644
--- a/ksvg/impl/SVGLengthImpl.h
+++ b/ksvg/impl/SVGLengthImpl.h
@@ -42,7 +42,7 @@ class SVGElementImpl;
 class SVGLengthImpl : public DOM::DomShared
 {
 public:
-	SVGLengthImpl(LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *context = 0);
+	SVGLengthImpl(LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *context = nullptr);
 	SVGLengthImpl(const SVGLengthImpl &);
 	virtual ~SVGLengthImpl();
 
diff --git a/ksvg/impl/SVGLineElementImpl.h b/ksvg/impl/SVGLineElementImpl.h
index 06f5fb32..27fab448 100644
--- a/ksvg/impl/SVGLineElementImpl.h
+++ b/ksvg/impl/SVGLineElementImpl.h
@@ -51,7 +51,7 @@ public:
 	SVGAnimatedLengthImpl *x2();
 	SVGAnimatedLengthImpl *y2();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void setAttributes();
 
 	virtual SVGRectImpl *getBBox();
diff --git a/ksvg/impl/SVGLocatableImpl.cpp b/ksvg/impl/SVGLocatableImpl.cpp
index 1bf17fb6..8783891d 100644
--- a/ksvg/impl/SVGLocatableImpl.cpp
+++ b/ksvg/impl/SVGLocatableImpl.cpp
@@ -37,8 +37,8 @@ using namespace KSVG;
 
 SVGLocatableImpl::SVGLocatableImpl()
 {
-	m_nearestViewportElement = 0;
-	m_farthestViewportElement = 0;
+	m_nearestViewportElement = nullptr;
+	m_farthestViewportElement = nullptr;
 	m_cachedScreenCTM = SVGSVGElementImpl::createSVGMatrix();
 	m_cachedScreenCTMIsValid = false;
 }
diff --git a/ksvg/impl/SVGLocatableImpl.h b/ksvg/impl/SVGLocatableImpl.h
index b59c60c8..57143308 100644
--- a/ksvg/impl/SVGLocatableImpl.h
+++ b/ksvg/impl/SVGLocatableImpl.h
@@ -49,7 +49,7 @@ public:
 
 	// The local transformations concatenated together. 0 if
 	// there are no local transformations.
-	virtual const SVGMatrixImpl *localMatrix() { return 0; }
+	virtual const SVGMatrixImpl *localMatrix() { return nullptr; }
 
 	bool cachedScreenCTMIsValid() const { return m_cachedScreenCTMIsValid; }
 	void invalidateCachedMatrices() { m_cachedScreenCTMIsValid = false; }
diff --git a/ksvg/impl/SVGMarkerElementImpl.h b/ksvg/impl/SVGMarkerElementImpl.h
index f0278052..fa42929f 100644
--- a/ksvg/impl/SVGMarkerElementImpl.h
+++ b/ksvg/impl/SVGMarkerElementImpl.h
@@ -59,7 +59,7 @@ public:
 	void setOrientToAngle(SVGAngleImpl *angle);
 
 	virtual void setAttributes();
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	
 	void draw(SVGShapeImpl *referencingElement, double x, double y, double lwidth, double angle);
 	
diff --git a/ksvg/impl/SVGMaskElementImpl.cpp b/ksvg/impl/SVGMaskElementImpl.cpp
index d3947ff4..24fcffb7 100644
--- a/ksvg/impl/SVGMaskElementImpl.cpp
+++ b/ksvg/impl/SVGMaskElementImpl.cpp
@@ -75,7 +75,7 @@ SVGMaskElementImpl::SVGMaskElementImpl(DOM::ElementImpl *impl) : SVGElementImpl(
 	m_converter->add(m_width);
 	m_converter->add(m_height);
 
-	m_canvas = 0;
+	m_canvas = nullptr;
 
 	m_maskCache.setMaxTotalCost(1024 * 1024);
 }
@@ -266,7 +266,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
 
 	TQ_UINT32 *imageBits = new TQ_UINT32[imageWidth * imageHeight];
 
-	if(m_canvas == 0)
+	if(!m_canvas)
 		m_canvas = CanvasFactory::self()->loadCanvas(imageWidth, imageHeight);
 
 	m_canvas->setup(reinterpret_cast<unsigned char *>(imageBits), imageWidth, imageHeight);
@@ -399,7 +399,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
 {
 	converter()->finalize(referencingElement, ownerSVGElement(), maskUnits()->baseVal());
 
-	SVGMatrixImpl *refCTM = 0;
+	SVGMatrixImpl *refCTM = nullptr;
 	SVGLocatableImpl *locatableRef = dynamic_cast<SVGLocatableImpl *>(referencingElement);
 	if(locatableRef)
 		refCTM = locatableRef->getScreenCTM();
@@ -427,7 +427,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
 		}
 
 		// Generate a mask-coordinates to screen-coordinates matrix
-		SVGMatrixImpl *matrix = 0;
+		SVGMatrixImpl *matrix = nullptr;
 		if(locatableRef)
 			matrix = locatableRef->getScreenCTM();
 		else
@@ -504,10 +504,10 @@ TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const TQRect&
 			if(parent)
 				shape = dynamic_cast<SVGShapeImpl *>(parent);
 			else
-				shape = 0;
+				shape = nullptr;
 		}
 		else
-			shape = 0;
+			shape = nullptr;
 
 	} while(shape);
 
diff --git a/ksvg/impl/SVGMaskElementImpl.h b/ksvg/impl/SVGMaskElementImpl.h
index f95b5675..1a2e1021 100644
--- a/ksvg/impl/SVGMaskElementImpl.h
+++ b/ksvg/impl/SVGMaskElementImpl.h
@@ -98,7 +98,7 @@ private:
 	class CacheKey
 	{
 	public:
-		CacheKey()  : m_element(0), m_width(0), m_height(0) {}
+		CacheKey()  : m_element(nullptr), m_width(0), m_height(0) {}
 		CacheKey(SVGElementImpl *element, int width, int height) : m_element(element), m_width(width), m_height(height) {}
 		bool operator==(const CacheKey& other) const { return m_element == other.m_element && m_width == other.m_width && m_height == other.m_height; }
 
diff --git a/ksvg/impl/SVGPaintServerImpl.cpp b/ksvg/impl/SVGPaintServerImpl.cpp
index 006ba853..44aaacc2 100644
--- a/ksvg/impl/SVGPaintServerImpl.cpp
+++ b/ksvg/impl/SVGPaintServerImpl.cpp
@@ -28,7 +28,7 @@ using namespace KSVG;
 
 SVGPaintServerImpl::SVGPaintServerImpl()
 {
-	m_paintServer = 0;
+	m_paintServer = nullptr;
 }
 
 SVGPaintServerImpl::~SVGPaintServerImpl()
@@ -37,7 +37,7 @@ SVGPaintServerImpl::~SVGPaintServerImpl()
 
 CanvasPaintServer *SVGPaintServerImpl::paintServer(SVGDocumentImpl *doc, const TQString& id)
 {
-	CanvasPaintServer *pserver = 0;
+	CanvasPaintServer *pserver = nullptr;
 	SVGElementImpl *element = doc->rootElement()->getElementById(id);
 
 	if(element)
diff --git a/ksvg/impl/SVGPathElementImpl.cpp b/ksvg/impl/SVGPathElementImpl.cpp
index d64aede3..a9a26207 100644
--- a/ksvg/impl/SVGPathElementImpl.cpp
+++ b/ksvg/impl/SVGPathElementImpl.cpp
@@ -448,7 +448,7 @@ Value SVGPathElementImpl::getValueProperty(ExecState *exec, int token) const
 		{
 				TQString d;
 				unsigned int nrSegs = pathSegList()->numberOfItems();
-				SVGPathSegImpl *curseg = 0;
+				SVGPathSegImpl *curseg = nullptr;
 				for(unsigned int i = 0; i < nrSegs; i++)
 				{
 					curseg = pathSegList()->getItem(i);
diff --git a/ksvg/impl/SVGPathElementImpl.h b/ksvg/impl/SVGPathElementImpl.h
index 9431e65e..619d4e44 100644
--- a/ksvg/impl/SVGPathElementImpl.h
+++ b/ksvg/impl/SVGPathElementImpl.h
@@ -98,7 +98,7 @@ public:
 	SVGPathSegCurvetoQuadraticSmoothAbsImpl *createSVGPathSegCurvetoQuadraticSmoothAbs(double x, double y);
 	SVGPathSegCurvetoQuadraticSmoothRelImpl *createSVGPathSegCurvetoQuadraticSmoothRel(double x, double y);
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 
 	virtual SVGRectImpl *getBBox();
 
diff --git a/ksvg/impl/SVGPatternElementImpl.cpp b/ksvg/impl/SVGPatternElementImpl.cpp
index 37825869..23e967f4 100644
--- a/ksvg/impl/SVGPatternElementImpl.cpp
+++ b/ksvg/impl/SVGPatternElementImpl.cpp
@@ -82,7 +82,7 @@ SVGPatternElementImpl::SVGPatternElementImpl(DOM::ElementImpl *impl) : SVGElemen
 
 	m_patternElements.append(this);
 
-	m_canvas = 0;
+	m_canvas = nullptr;
 	m_location = this;
 
 	m_tileCache.setMaxTotalCost(1024 * 1024);
@@ -155,7 +155,7 @@ void SVGPatternElementImpl::createItem(KSVGCanvas *c)
 void SVGPatternElementImpl::removeItem(KSVGCanvas *)
 {
 	delete m_paintServer;
-	m_paintServer = 0;
+	m_paintServer = nullptr;
 }
 
 // Ecma stuff
@@ -311,7 +311,7 @@ TQImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int
 	TQImage image(imageWidth, imageHeight, 32);
 	image.setAlphaBuffer(true);
 
-	if(m_canvas == 0)
+	if(!m_canvas)
 	{
 		m_canvas = CanvasFactory::self()->loadCanvas(image.width(), image.height());
 		m_canvas->setBackgroundColor(tqRgba(0, 0, 0, 0));
@@ -382,7 +382,7 @@ TQImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int
 		TQPtrListIterator<CanvasItem> it(items);
 		CanvasItem *item;
 
-		while((item = *it) != 0)
+		while((item = *it) != nullptr)
 		{
 			TQRect bbox = item->bbox();
 			allItemsBBox |= bbox;
@@ -455,7 +455,7 @@ SVGPatternElementImpl::Tile SVGPatternElementImpl::createTile(SVGShapeImpl *refe
 	converter()->finalize(referencingElement, ownerSVGElement(), patternUnits()->baseVal());
 
 	SVGTransformableImpl *transformable = dynamic_cast<SVGTransformableImpl *>(referencingElement);
-	SVGMatrixImpl *matrix = 0;
+	SVGMatrixImpl *matrix = nullptr;
 	if(transformable)
 		matrix = transformable->getScreenCTM();
 	else
diff --git a/ksvg/impl/SVGPatternElementImpl.h b/ksvg/impl/SVGPatternElementImpl.h
index fb1f0128..9bcebe6e 100644
--- a/ksvg/impl/SVGPatternElementImpl.h
+++ b/ksvg/impl/SVGPatternElementImpl.h
@@ -67,7 +67,7 @@ public:
 
 	virtual void setAttributes();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void removeItem(KSVGCanvas *c);
 
 	SVGUnitConverter *converter() const { return m_converter; }
diff --git a/ksvg/impl/SVGPolygonElementImpl.h b/ksvg/impl/SVGPolygonElementImpl.h
index af1edd77..a004b001 100644
--- a/ksvg/impl/SVGPolygonElementImpl.h
+++ b/ksvg/impl/SVGPolygonElementImpl.h
@@ -35,7 +35,7 @@ public:
 	SVGPolygonElementImpl(DOM::ElementImpl *);
 	virtual ~SVGPolygonElementImpl() { }
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 
 	virtual void drawMarkers();
 
diff --git a/ksvg/impl/SVGPolylineElementImpl.h b/ksvg/impl/SVGPolylineElementImpl.h
index 8a51dd74..9e13a293 100644
--- a/ksvg/impl/SVGPolylineElementImpl.h
+++ b/ksvg/impl/SVGPolylineElementImpl.h
@@ -35,7 +35,7 @@ public:
 	SVGPolylineElementImpl(DOM::ElementImpl *);
 	virtual ~SVGPolylineElementImpl() { }
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 
 	virtual void drawMarkers();
 
diff --git a/ksvg/impl/SVGRectElementImpl.h b/ksvg/impl/SVGRectElementImpl.h
index 7b871389..e8a1e3ec 100644
--- a/ksvg/impl/SVGRectElementImpl.h
+++ b/ksvg/impl/SVGRectElementImpl.h
@@ -53,7 +53,7 @@ public:
 	SVGAnimatedLengthImpl *rx();
 	SVGAnimatedLengthImpl *ry();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual void setAttributes();
 
 	virtual SVGRectImpl *getBBox();
diff --git a/ksvg/impl/SVGSVGElementImpl.cpp b/ksvg/impl/SVGSVGElementImpl.cpp
index 98106d7c..0e2638d4 100644
--- a/ksvg/impl/SVGSVGElementImpl.cpp
+++ b/ksvg/impl/SVGSVGElementImpl.cpp
@@ -90,12 +90,12 @@ SVGSVGElementImpl::SVGSVGElementImpl(DOM::ElementImpl *impl) : SVGContainerImpl(
 
 	m_useCurrentView = false;
 
-	m_clip[0] = 0;
-	m_clip[1] = 0;
-	m_clip[2] = 0;
-	m_clip[3] = 0;
+	m_clip[0] = nullptr;
+	m_clip[1] = nullptr;
+	m_clip[2] = nullptr;
+	m_clip[3] = nullptr;
 
-	m_rootParentScreenCTM = 0;
+	m_rootParentScreenCTM = nullptr;
 
 	m_localMatrix = SVGSVGElementImpl::createSVGMatrix();
 }
@@ -166,7 +166,7 @@ void SVGSVGElementImpl::setAttributes()
 	m_viewport->setWidth(width()->baseVal()->value());
 	m_viewport->setHeight(height()->baseVal()->value());
 
-	if(isRootElement() && ownerDoc()->parentImage() == 0)
+	if(isRootElement() && !ownerDoc()->parentImage())
 	{
 		if(ownerDoc()->canvas())
 			ownerDoc()->canvas()->setViewportDimension(int(ceil(width()->baseVal()->value() * currentScale())), int(ceil(height()->baseVal()->value() * currentScale())));
@@ -519,9 +519,9 @@ const SVGMatrixImpl *SVGSVGElementImpl::localMatrix()
 
 	m_localMatrix->reset();
 
-	if(ownerSVGElement() == 0)
+	if(!ownerSVGElement())
 	{
-		if(m_rootParentScreenCTM != 0)
+		if(m_rootParentScreenCTM)
 			m_localMatrix->copy(m_rootParentScreenCTM);
 
 		// We're the outermost svg element.
@@ -607,7 +607,7 @@ TQRect SVGSVGElementImpl::clip()
 
 void SVGSVGElementImpl::setRootParentScreenCTM(SVGMatrixImpl *screenCTM)
 {
-	if(m_rootParentScreenCTM != 0)
+	if(m_rootParentScreenCTM)
 		m_rootParentScreenCTM->deref();
 
 	m_rootParentScreenCTM = screenCTM;
@@ -618,7 +618,7 @@ bool SVGSVGElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &a, SV
 {
 	// mop: central bool var which turns to true once the current "mouseover" element has been found
 	bool ret = false, dorerender = false;
-	SVGElementImpl *elem = 0;
+	SVGElementImpl *elem = nullptr;
 	
 	SVGMatrixImpl *ctm = getCTM();
 	TQPoint userA = ctm->qmatrix().invert().map(a);
@@ -648,7 +648,7 @@ bool SVGSVGElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &a, SV
 			}
 			
 			// mop: unset last target once we left it
-			ownerDoc()->setLastTarget(0);
+			ownerDoc()->setLastTarget(nullptr);
 		}
 	}
 
@@ -731,7 +731,7 @@ bool SVGSVGElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &a, SV
 		}
 
 		// Hyperlink support
-		SVGAElementImpl* link=0;
+		SVGAElementImpl* link=nullptr;
 		if(dolinktest && !mev->defaultPrevented())
 		{
 			link = SVGAElementImpl::getLink(elem);
diff --git a/ksvg/impl/SVGScriptElementImpl.cpp b/ksvg/impl/SVGScriptElementImpl.cpp
index ce1aede9..f57cfbc7 100644
--- a/ksvg/impl/SVGScriptElementImpl.cpp
+++ b/ksvg/impl/SVGScriptElementImpl.cpp
@@ -39,7 +39,7 @@ SVGScriptElementImpl::SVGScriptElementImpl(DOM::ElementImpl *impl) : TQObject(),
 {
 	KSVG_EMPTY_FLAGS
 
-	m_job = 0;
+	m_job = nullptr;
 	m_added = false;
 }
 
@@ -72,7 +72,7 @@ void SVGScriptElementImpl::setAttributes()
 	{
 		KURL url(ownerDoc()->baseUrl(), href);
 
-		if(m_job == 0)
+		if(!m_job)
 			m_job = TDEIO::get(url, false, false);
 
 		connect(m_job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), this, TQ_SLOT(slotData(TDEIO::Job *, const TQByteArray &)));
@@ -88,7 +88,7 @@ void SVGScriptElementImpl::slotData(TDEIO::Job *, const TQByteArray &data)
 
 void SVGScriptElementImpl::slotResult(TDEIO::Job *)
 {
-	m_job = 0;
+	m_job = nullptr;
 
 	// Append a NULL terminator so we don't die
 	m_data.resize(m_data.size() + 1);
diff --git a/ksvg/impl/SVGShapeImpl.cpp b/ksvg/impl/SVGShapeImpl.cpp
index dc9b728f..04ffe359 100644
--- a/ksvg/impl/SVGShapeImpl.cpp
+++ b/ksvg/impl/SVGShapeImpl.cpp
@@ -40,7 +40,7 @@ using namespace KSVG;
 
 SVGShapeImpl::SVGShapeImpl(DOM::ElementImpl *impl) : SVGElementImpl(impl)
 {
-	m_item = 0;
+	m_item = nullptr;
 }
 
 SVGShapeImpl::~SVGShapeImpl()
@@ -155,6 +155,6 @@ void SVGShapeImpl::removeItem(KSVGCanvas *c)
 	if(m_item && c)
 	{
 		c->removeItem(m_item);
-		m_item = 0;
+		m_item = nullptr;
 	}
 }
diff --git a/ksvg/impl/SVGStylableImpl.cpp b/ksvg/impl/SVGStylableImpl.cpp
index 4400b236..af9f5478 100644
--- a/ksvg/impl/SVGStylableImpl.cpp
+++ b/ksvg/impl/SVGStylableImpl.cpp
@@ -56,14 +56,14 @@ SVGStylableImpl::SVGStylableImpl(SVGElementImpl *object) : m_object(object)
 
 	// Initialize all pointers to 0
 	// Important!
-	m_color = 0;
-	m_fillColor = 0;
-	m_stopColor = 0;
-	m_dashArray = 0;
-	m_dashOffset = 0; 
-	m_strokeWidth = 0;
-	m_strokeColor = 0;
-	m_fontFamily = 0;
+	m_color = nullptr;
+	m_fillColor = nullptr;
+	m_stopColor = nullptr;
+	m_dashArray = nullptr;
+	m_dashOffset = nullptr;
+	m_strokeWidth = nullptr;
+	m_strokeColor = nullptr;
+	m_fontFamily = nullptr;
 
 	m_fillOpacity = 1;
 	m_strokeOpacity = 1;
@@ -98,7 +98,7 @@ SVGStylableImpl::~SVGStylableImpl()
 
 void SVGStylableImpl::processStyle()
 {
-	SVGStylableImpl *parentStyle = 0;
+	SVGStylableImpl *parentStyle = nullptr;
 	if(m_object && m_object->ownerDoc())
 		parentStyle = dynamic_cast<SVGStylableImpl *>(m_object->ownerDoc()->getElementFromHandle((*m_object).parentNode().handle()));
 
@@ -108,7 +108,7 @@ void SVGStylableImpl::processStyle()
 		m_strokeColor = new SVGPaintImpl(m_object);
 		m_strokeColor->ref();
 
-		SVGPaintImpl *strokeColor = 0L;
+		SVGPaintImpl *strokeColor = nullptr;
 		if(parentStyle)
 			strokeColor = parentStyle->getStrokeColor();
 
@@ -124,7 +124,7 @@ void SVGStylableImpl::processStyle()
 		m_fillColor = new SVGPaintImpl(m_object);
 		m_fillColor->ref();
 
-		SVGPaintImpl *fillColor = 0;
+		SVGPaintImpl *fillColor = nullptr;
 		if(parentStyle)
 			fillColor = parentStyle->getFillColor();
 
@@ -139,7 +139,7 @@ void SVGStylableImpl::processStyle()
 	{
 		m_color = new SVGColorImpl(m_object);
 		m_color->ref();
-		SVGColorImpl *color = 0;
+		SVGColorImpl *color = nullptr;
 		if(parentStyle)
 			color = parentStyle->getColor();
 
@@ -162,7 +162,7 @@ void SVGStylableImpl::processStyle()
 		m_strokeWidth = new SVGAnimatedLengthImpl(LENGTHMODE_OTHER, m_object);
 		m_strokeWidth->ref();
 
-		SVGAnimatedLengthImpl *strokeWidth = 0;
+		SVGAnimatedLengthImpl *strokeWidth = nullptr;
 		if(parentStyle)
 			strokeWidth = parentStyle->getStrokeWidth();
 
@@ -223,7 +223,7 @@ void SVGStylableImpl::processStyle()
 		m_dashOffset = new SVGAnimatedLengthImpl(LENGTHMODE_OTHER, m_object);
 		m_dashOffset->ref();
 
-		SVGAnimatedLengthImpl *dashOffset = 0;
+		SVGAnimatedLengthImpl *dashOffset = nullptr;
 		if(parentStyle)
 			dashOffset = parentStyle->getDashOffset();
 
@@ -236,7 +236,7 @@ void SVGStylableImpl::processStyle()
 	// Spec: default "none" -> 0 == empty dash array
 	if(~m_flags & SVG_STYLE_FLAG_STROKE_DASH_ARRAY)
 	{
-		SVGAnimatedLengthListImpl *dashArray = 0;
+		SVGAnimatedLengthListImpl *dashArray = nullptr;
 		if(parentStyle)
 			dashArray = parentStyle->getDashArray();
 
@@ -250,7 +250,7 @@ void SVGStylableImpl::processStyle()
 			*m_dashArray = *dashArray;
 		}
 		else
-			m_dashArray = 0;
+			m_dashArray = nullptr;
 	}
 
 	// Spec: default "1" -> 1 == Not opaque
@@ -346,7 +346,7 @@ void SVGStylableImpl::processStyle()
 			m_fontFamily->ref();
 		}
 
-		SVGStringListImpl *fontFamily = 0;
+		SVGStringListImpl *fontFamily = nullptr;
 		if(parentStyle)
 			fontFamily = parentStyle->getFontFamily();
 
diff --git a/ksvg/impl/SVGSwitchElementImpl.h b/ksvg/impl/SVGSwitchElementImpl.h
index 5807e77a..63957329 100644
--- a/ksvg/impl/SVGSwitchElementImpl.h
+++ b/ksvg/impl/SVGSwitchElementImpl.h
@@ -44,7 +44,7 @@ public:
 	SVGSwitchElementImpl(DOM::ElementImpl *);
 	virtual ~SVGSwitchElementImpl();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 	virtual bool isContainer() const { return true; }
 
 public:
diff --git a/ksvg/impl/SVGTextElementImpl.h b/ksvg/impl/SVGTextElementImpl.h
index a59564ed..b8afd709 100644
--- a/ksvg/impl/SVGTextElementImpl.h
+++ b/ksvg/impl/SVGTextElementImpl.h
@@ -41,7 +41,7 @@ public:
 
 	virtual long getNumberOfChars();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 
 	virtual SVGRectImpl *getBBox();
 
diff --git a/ksvg/impl/SVGTimeScheduler.cpp b/ksvg/impl/SVGTimeScheduler.cpp
index cf8bc75d..74d6007e 100644
--- a/ksvg/impl/SVGTimeScheduler.cpp
+++ b/ksvg/impl/SVGTimeScheduler.cpp
@@ -186,7 +186,7 @@ void SVGTimeScheduler::slotTimerNotify()
 {
 	TQTimer *senderTimer = const_cast<TQTimer *>(static_cast<const TQTimer *>(sender()));
 
-	SVGTimer *svgTimer = 0;
+	SVGTimer *svgTimer = nullptr;
 	SVGTimerList::iterator it;
 	for(it = m_timerList.begin(); it != m_timerList.end(); ++it)
 	{
@@ -200,7 +200,7 @@ void SVGTimeScheduler::slotTimerNotify()
 
 	if(!svgTimer)
 	{
-		svgTimer = (*m_intervalTimer == senderTimer) ? m_intervalTimer : 0;
+		svgTimer = (*m_intervalTimer == senderTimer) ? m_intervalTimer : nullptr;
 	
 		if(!svgTimer)
 			return;
diff --git a/ksvg/impl/SVGTitleElementImpl.h b/ksvg/impl/SVGTitleElementImpl.h
index 04ca9d81..5cb01c01 100644
--- a/ksvg/impl/SVGTitleElementImpl.h
+++ b/ksvg/impl/SVGTitleElementImpl.h
@@ -38,7 +38,7 @@ public:
 	SVGTitleElementImpl(DOM::ElementImpl *);
 	virtual ~SVGTitleElementImpl();
 
-	virtual void createItem(KSVGCanvas *c = 0);
+	virtual void createItem(KSVGCanvas *c = nullptr);
 
 public:
 	KSVG_BRIDGE
diff --git a/ksvg/impl/SVGTransformListImpl.cpp b/ksvg/impl/SVGTransformListImpl.cpp
index 18e737b5..71ccfb07 100644
--- a/ksvg/impl/SVGTransformListImpl.cpp
+++ b/ksvg/impl/SVGTransformListImpl.cpp
@@ -65,7 +65,7 @@ Value SVGTransformListImplProtoFunc::call(ExecState *exec, Object &thisObj, cons
 
 SVGTransformImpl *SVGTransformListImpl::consolidate()
 {
-	SVGTransformImpl *trans = 0;
+	SVGTransformImpl *trans = nullptr;
 	
 	if(numberOfItems()>0)
 	{
@@ -87,7 +87,7 @@ SVGTransformImpl *SVGTransformListImpl::consolidate()
 
 SVGMatrixImpl *SVGTransformListImpl::concatenate() const
 {
-	SVGMatrixImpl *matrix = 0;
+	SVGMatrixImpl *matrix = nullptr;
 
 	if(numberOfItems()>0)
 	{
diff --git a/ksvg/impl/SVGTransformableImpl.cpp b/ksvg/impl/SVGTransformableImpl.cpp
index 6d9e4055..4c5f5aae 100644
--- a/ksvg/impl/SVGTransformableImpl.cpp
+++ b/ksvg/impl/SVGTransformableImpl.cpp
@@ -41,7 +41,7 @@ SVGTransformableImpl::SVGTransformableImpl() : SVGLocatableImpl()
 	m_transform = new SVGAnimatedTransformListImpl();
 	m_transform->ref();
 
-	m_localMatrix = 0;
+	m_localMatrix = nullptr;
 }
 
 SVGTransformableImpl::SVGTransformableImpl(const SVGTransformableImpl &other) : SVGLocatableImpl()
@@ -120,7 +120,7 @@ void SVGTransformableImpl::updateLocalMatrix()
 		if(m_localMatrix)
 		{
 			m_localMatrix->deref();
-			m_localMatrix = 0;
+			m_localMatrix = nullptr;
 		}
 	}
 
diff --git a/ksvg/impl/SVGUseElementImpl.cpp b/ksvg/impl/SVGUseElementImpl.cpp
index b7f36be5..af5c16f2 100644
--- a/ksvg/impl/SVGUseElementImpl.cpp
+++ b/ksvg/impl/SVGUseElementImpl.cpp
@@ -62,7 +62,7 @@ SVGUseElementImpl::SVGUseElementImpl(DOM::ElementImpl *impl) : SVGShapeImpl(impl
 	m_height = new SVGAnimatedLengthImpl();
 	m_height->ref();
 
-	m_instanceRoot = 0;
+	m_instanceRoot = nullptr;
 }
 
 SVGUseElementImpl::~SVGUseElementImpl()
@@ -231,20 +231,20 @@ void SVGUseElementImpl::createItem(KSVGCanvas *c)
 		{
 			orig = ownerDoc()->getElementByIdRecursive(ownerSVGElement(), href()->baseVal());
 
-			if(orig == 0)
+			if(!orig)
 			{
 				// The document will try to create this item again once the parsing has finished.
 				ownerDoc()->addForwardReferencingUseElement(this);
 			}
 		}
 		
-		if(orig == 0)
+		if(!orig)
 			return;
 
 		setReferencedElement(orig);
 
 		// Create a parent, a <g>
-		SVGElementImpl *parent = 0;
+		SVGElementImpl *parent = nullptr;
 		DOM::Element impl = static_cast<DOM::Document *>(ownerDoc())->createElement("g");
 		parent = SVGDocumentImpl::createElement("g", impl, ownerDoc());
 		SVGElementImpl *clone = orig->cloneNode(true);
@@ -306,7 +306,7 @@ void SVGUseElementImpl::createItem(KSVGCanvas *c)
 		// Redirect local ecma event handlers to the correspondingElement
 		TQPtrListIterator<SVGRegisteredEventListener> it(eventListeners());
 		SVGRegisteredEventListener *eventListener;
-		while((eventListener = it.current()) != 0)
+		while((eventListener = it.current()) != nullptr)
 		{
 			++it;
 			clone->setEventListener(eventListener->id, eventListener->listener);
@@ -337,7 +337,7 @@ void SVGUseElementImpl::setupSubtree(SVGElementImpl *element, SVGSVGElementImpl
 
 	SVGSVGElementImpl *thisSVG = dynamic_cast<SVGSVGElementImpl *>(element);
 
-	if(thisSVG != 0)
+	if(thisSVG)
 	{
 		ownerSVG = thisSVG;
 		viewport = element;
@@ -347,7 +347,7 @@ void SVGUseElementImpl::setupSubtree(SVGElementImpl *element, SVGSVGElementImpl
 	for(; !child.isNull(); child = child.nextSibling())
 	{
 		SVGElementImpl *childElement = ownerDoc()->getElementFromHandle(child.handle());
-		if(childElement != 0)
+		if(childElement)
 			setupSubtree(childElement, ownerSVG, viewport);
 	}
 }
diff --git a/ksvg/impl/SVGViewSpecImpl.cpp b/ksvg/impl/SVGViewSpecImpl.cpp
index ff42db43..0f4c1f5d 100644
--- a/ksvg/impl/SVGViewSpecImpl.cpp
+++ b/ksvg/impl/SVGViewSpecImpl.cpp
@@ -33,7 +33,7 @@ SVGViewSpecImpl::SVGViewSpecImpl() : SVGZoomAndPanImpl(), SVGFitToViewBoxImpl()
 	m_transform = new SVGTransformListImpl();
 	m_transform->ref();
 
-	m_viewTarget = new SVGElementImpl(0);
+	m_viewTarget = new SVGElementImpl(nullptr);
 	m_viewTarget->ref();
 }
 
diff --git a/ksvg/impl/SVGWindowImpl.cpp b/ksvg/impl/SVGWindowImpl.cpp
index 5edd4b4e..9b14d6d4 100644
--- a/ksvg/impl/SVGWindowImpl.cpp
+++ b/ksvg/impl/SVGWindowImpl.cpp
@@ -38,7 +38,7 @@ using namespace KSVG;
 
 SVGWindowImpl::SVGWindowImpl()
 {
-	m_document = 0;
+	m_document = nullptr;
 }
 
 SVGWindowImpl::SVGWindowImpl(SVGDocumentImpl *doc)
@@ -165,12 +165,12 @@ long SVGWindowImpl::setTimeout(const DOM::DOMString &/*code*/, const long &/*del
 
 void SVGWindowImpl::alert(const DOM::DOMString &message, const TQString &title)
 {
-	KMessageBox::error(0L, TQStyleSheet::convertFromPlainText(message.string()), title);
+	KMessageBox::error(nullptr, TQStyleSheet::convertFromPlainText(message.string()), title);
 }
 
 bool SVGWindowImpl::confirm(const DOM::DOMString &message, const TQString &title)
 {
-	return KMessageBox::warningContinueCancel(0L, TQStyleSheet::convertFromPlainText(message.string()), title, KStdGuiItem::ok()) == KMessageBox::Continue;
+	return KMessageBox::warningContinueCancel(nullptr, TQStyleSheet::convertFromPlainText(message.string()), title, KStdGuiItem::ok()) == KMessageBox::Continue;
 }
 
 DOM::DOMString SVGWindowImpl::prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const TQString &)
diff --git a/ksvg/impl/generateddata.cpp b/ksvg/impl/generateddata.cpp
index 5a4b3d7b..7f83e0cf 100644
--- a/ksvg/impl/generateddata.cpp
+++ b/ksvg/impl/generateddata.cpp
@@ -165,223 +165,223 @@ using namespace KJS;
 
 // For all classes with generated data: the ClassInfo
 const DOM::DOMString SVGAElementImpl::s_tagName = "a";
-const ClassInfo SVGAElementImpl::s_classInfo = {"KSVG::SVGAElementImpl",0,&SVGAElementImpl::s_hashTable,0};
+const ClassInfo SVGAElementImpl::s_classInfo = {"KSVG::SVGAElementImpl",nullptr,&SVGAElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGAltGlyphDefElementImpl::s_tagName = "altGlyphDef";
-const ClassInfo SVGAltGlyphDefElementImpl::s_classInfo = {"KSVG::SVGAltGlyphDefElementImpl",0,0,0};
+const ClassInfo SVGAltGlyphDefElementImpl::s_classInfo = {"KSVG::SVGAltGlyphDefElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGAltGlyphElementImpl::s_tagName = "altGlyph";
-const ClassInfo SVGAltGlyphElementImpl::s_classInfo = {"KSVG::SVGAltGlyphElementImpl",0,0,0};
-const ClassInfo SVGAngleImpl::s_classInfo = {"KSVG::SVGAngleImpl",0,&SVGAngleImpl::s_hashTable,0};
-const ClassInfo SVGAngleImplConstructor::s_classInfo = {"KSVG::SVGAngleImplConstructor",0,&SVGAngleImplConstructor::s_hashTable,0};
+const ClassInfo SVGAltGlyphElementImpl::s_classInfo = {"KSVG::SVGAltGlyphElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGAngleImpl::s_classInfo = {"KSVG::SVGAngleImpl",nullptr,&SVGAngleImpl::s_hashTable,nullptr};
+const ClassInfo SVGAngleImplConstructor::s_classInfo = {"KSVG::SVGAngleImplConstructor",nullptr,&SVGAngleImplConstructor::s_hashTable,nullptr};
 const DOM::DOMString SVGAnimateColorElementImpl::s_tagName = "animateColor";
-const ClassInfo SVGAnimateColorElementImpl::s_classInfo = {"KSVG::SVGAnimateColorElementImpl",0,0,0};
+const ClassInfo SVGAnimateColorElementImpl::s_classInfo = {"KSVG::SVGAnimateColorElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGAnimateElementImpl::s_tagName = "animate";
-const ClassInfo SVGAnimateElementImpl::s_classInfo = {"KSVG::SVGAnimateElementImpl",0,0,0};
+const ClassInfo SVGAnimateElementImpl::s_classInfo = {"KSVG::SVGAnimateElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGAnimateMotionElementImpl::s_tagName = "animateMotion";
-const ClassInfo SVGAnimateMotionElementImpl::s_classInfo = {"KSVG::SVGAnimateMotionElementImpl",0,0,0};
+const ClassInfo SVGAnimateMotionElementImpl::s_classInfo = {"KSVG::SVGAnimateMotionElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGAnimateTransformElementImpl::s_tagName = "animateTransform";
-const ClassInfo SVGAnimateTransformElementImpl::s_classInfo = {"KSVG::SVGAnimateTransformElementImpl",0,0,0};
-const ClassInfo SVGAnimatedAngleImpl::s_classInfo = {"KSVG::SVGAnimatedAngleImpl",0,&SVGAnimatedAngleImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedBooleanImpl::s_classInfo = {"KSVG::SVGAnimatedBooleanImpl",0,&SVGAnimatedBooleanImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedEnumerationImpl::s_classInfo = {"KSVG::SVGAnimatedEnumerationImpl",0,&SVGAnimatedEnumerationImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedIntegerImpl::s_classInfo = {"KSVG::SVGAnimatedIntegerImpl",0,&SVGAnimatedIntegerImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedLengthImpl::s_classInfo = {"KSVG::SVGAnimatedLengthImpl",0,&SVGAnimatedLengthImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedLengthListImpl::s_classInfo = {"KSVG::SVGAnimatedLengthListImpl",0,&SVGAnimatedLengthListImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedNumberImpl::s_classInfo = {"KSVG::SVGAnimatedNumberImpl",0,&SVGAnimatedNumberImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedNumberListImpl::s_classInfo = {"KSVG::SVGAnimatedNumberListImpl",0,&SVGAnimatedNumberListImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedPathDataImpl::s_classInfo = {"KSVG::SVGAnimatedPathDataImpl",0,&SVGAnimatedPathDataImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedPointsImpl::s_classInfo = {"KSVG::SVGAnimatedPointsImpl",0,&SVGAnimatedPointsImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedPreserveAspectRatioImpl::s_classInfo = {"KSVG::SVGAnimatedPreserveAspectRatioImpl",0,&SVGAnimatedPreserveAspectRatioImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedRectImpl::s_classInfo = {"KSVG::SVGAnimatedRectImpl",0,&SVGAnimatedRectImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedStringImpl::s_classInfo = {"KSVG::SVGAnimatedStringImpl",0,&SVGAnimatedStringImpl::s_hashTable,0};
-const ClassInfo SVGAnimatedTransformListImpl::s_classInfo = {"KSVG::SVGAnimatedTransformListImpl",0,&SVGAnimatedTransformListImpl::s_hashTable,0};
-const ClassInfo SVGAnimationElementImpl::s_classInfo = {"KSVG::SVGAnimationElementImpl",0,&SVGAnimationElementImpl::s_hashTable,0};
+const ClassInfo SVGAnimateTransformElementImpl::s_classInfo = {"KSVG::SVGAnimateTransformElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGAnimatedAngleImpl::s_classInfo = {"KSVG::SVGAnimatedAngleImpl",nullptr,&SVGAnimatedAngleImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedBooleanImpl::s_classInfo = {"KSVG::SVGAnimatedBooleanImpl",nullptr,&SVGAnimatedBooleanImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedEnumerationImpl::s_classInfo = {"KSVG::SVGAnimatedEnumerationImpl",nullptr,&SVGAnimatedEnumerationImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedIntegerImpl::s_classInfo = {"KSVG::SVGAnimatedIntegerImpl",nullptr,&SVGAnimatedIntegerImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedLengthImpl::s_classInfo = {"KSVG::SVGAnimatedLengthImpl",nullptr,&SVGAnimatedLengthImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedLengthListImpl::s_classInfo = {"KSVG::SVGAnimatedLengthListImpl",nullptr,&SVGAnimatedLengthListImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedNumberImpl::s_classInfo = {"KSVG::SVGAnimatedNumberImpl",nullptr,&SVGAnimatedNumberImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedNumberListImpl::s_classInfo = {"KSVG::SVGAnimatedNumberListImpl",nullptr,&SVGAnimatedNumberListImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedPathDataImpl::s_classInfo = {"KSVG::SVGAnimatedPathDataImpl",nullptr,&SVGAnimatedPathDataImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedPointsImpl::s_classInfo = {"KSVG::SVGAnimatedPointsImpl",nullptr,&SVGAnimatedPointsImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedPreserveAspectRatioImpl::s_classInfo = {"KSVG::SVGAnimatedPreserveAspectRatioImpl",nullptr,&SVGAnimatedPreserveAspectRatioImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedRectImpl::s_classInfo = {"KSVG::SVGAnimatedRectImpl",nullptr,&SVGAnimatedRectImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedStringImpl::s_classInfo = {"KSVG::SVGAnimatedStringImpl",nullptr,&SVGAnimatedStringImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimatedTransformListImpl::s_classInfo = {"KSVG::SVGAnimatedTransformListImpl",nullptr,&SVGAnimatedTransformListImpl::s_hashTable,nullptr};
+const ClassInfo SVGAnimationElementImpl::s_classInfo = {"KSVG::SVGAnimationElementImpl",nullptr,&SVGAnimationElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGCircleElementImpl::s_tagName = "circle";
-const ClassInfo SVGCircleElementImpl::s_classInfo = {"KSVG::SVGCircleElementImpl",0,&SVGCircleElementImpl::s_hashTable,0};
+const ClassInfo SVGCircleElementImpl::s_classInfo = {"KSVG::SVGCircleElementImpl",nullptr,&SVGCircleElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGClipPathElementImpl::s_tagName = "clipPath";
-const ClassInfo SVGClipPathElementImpl::s_classInfo = {"KSVG::SVGClipPathElementImpl",0,&SVGClipPathElementImpl::s_hashTable,0};
-const ClassInfo SVGColorImpl::s_classInfo = {"KSVG::SVGColorImpl",0,&SVGColorImpl::s_hashTable,0};
-const ClassInfo SVGColorImplConstructor::s_classInfo = {"KSVG::SVGColorImplConstructor",0,&SVGColorImplConstructor::s_hashTable,0};
+const ClassInfo SVGClipPathElementImpl::s_classInfo = {"KSVG::SVGClipPathElementImpl",nullptr,&SVGClipPathElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGColorImpl::s_classInfo = {"KSVG::SVGColorImpl",nullptr,&SVGColorImpl::s_hashTable,nullptr};
+const ClassInfo SVGColorImplConstructor::s_classInfo = {"KSVG::SVGColorImplConstructor",nullptr,&SVGColorImplConstructor::s_hashTable,nullptr};
 const DOM::DOMString SVGColorProfileElementImpl::s_tagName = "color-profile";
-const ClassInfo SVGColorProfileElementImpl::s_classInfo = {"KSVG::SVGColorProfileElementImpl",0,&SVGColorProfileElementImpl::s_hashTable,0};
-const ClassInfo SVGComponentTransferFunctionElementImpl::s_classInfo = {"KSVG::SVGComponentTransferFunctionElementImpl",0,0,0};
-const ClassInfo SVGContainerImpl::s_classInfo = {"KSVG::SVGContainerImpl",0,0,0};
-const ClassInfo SVGCursorElementImpl::s_classInfo = {"KSVG::SVGCursorElementImpl",0,&SVGCursorElementImpl::s_hashTable,0};
-const ClassInfo SVGDOMCharacterDataBridge::s_classInfo = {"KSVG::SVGDOMCharacterDataBridge",0,&SVGDOMCharacterDataBridge::s_hashTable,0};
-const ClassInfo SVGDOMDOMImplementationBridge::s_classInfo = {"KSVG::SVGDOMDOMImplementationBridge",0,&SVGDOMDOMImplementationBridge::s_hashTable,0};
-const ClassInfo SVGDOMDocumentFragmentBridge::s_classInfo = {"KSVG::SVGDOMDocumentFragmentBridge",0,&SVGDOMDocumentFragmentBridge::s_hashTable,0};
-const ClassInfo SVGDOMElementBridge::s_classInfo = {"KSVG::SVGDOMElementBridge",0,&SVGDOMElementBridge::s_hashTable,0};
-const ClassInfo SVGDOMNodeBridge::s_classInfo = {"KSVG::SVGDOMNodeBridge",0,&SVGDOMNodeBridge::s_hashTable,0};
-const ClassInfo SVGDOMNodeListBridge::s_classInfo = {"KSVG::SVGDOMNodeListBridge",0,&SVGDOMNodeListBridge::s_hashTable,0};
-const ClassInfo SVGDOMTextBridge::s_classInfo = {"KSVG::SVGDOMTextBridge",0,&SVGDOMTextBridge::s_hashTable,0};
-const ClassInfo SVGDefinitionSrcElementImpl::s_classInfo = {"KSVG::SVGDefinitionSrcElementImpl",0,0,0};
+const ClassInfo SVGColorProfileElementImpl::s_classInfo = {"KSVG::SVGColorProfileElementImpl",nullptr,&SVGColorProfileElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGComponentTransferFunctionElementImpl::s_classInfo = {"KSVG::SVGComponentTransferFunctionElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGContainerImpl::s_classInfo = {"KSVG::SVGContainerImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGCursorElementImpl::s_classInfo = {"KSVG::SVGCursorElementImpl",nullptr,&SVGCursorElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGDOMCharacterDataBridge::s_classInfo = {"KSVG::SVGDOMCharacterDataBridge",nullptr,&SVGDOMCharacterDataBridge::s_hashTable,nullptr};
+const ClassInfo SVGDOMDOMImplementationBridge::s_classInfo = {"KSVG::SVGDOMDOMImplementationBridge",nullptr,&SVGDOMDOMImplementationBridge::s_hashTable,nullptr};
+const ClassInfo SVGDOMDocumentFragmentBridge::s_classInfo = {"KSVG::SVGDOMDocumentFragmentBridge",nullptr,&SVGDOMDocumentFragmentBridge::s_hashTable,nullptr};
+const ClassInfo SVGDOMElementBridge::s_classInfo = {"KSVG::SVGDOMElementBridge",nullptr,&SVGDOMElementBridge::s_hashTable,nullptr};
+const ClassInfo SVGDOMNodeBridge::s_classInfo = {"KSVG::SVGDOMNodeBridge",nullptr,&SVGDOMNodeBridge::s_hashTable,nullptr};
+const ClassInfo SVGDOMNodeListBridge::s_classInfo = {"KSVG::SVGDOMNodeListBridge",nullptr,&SVGDOMNodeListBridge::s_hashTable,nullptr};
+const ClassInfo SVGDOMTextBridge::s_classInfo = {"KSVG::SVGDOMTextBridge",nullptr,&SVGDOMTextBridge::s_hashTable,nullptr};
+const ClassInfo SVGDefinitionSrcElementImpl::s_classInfo = {"KSVG::SVGDefinitionSrcElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGDefsElementImpl::s_tagName = "defs";
-const ClassInfo SVGDefsElementImpl::s_classInfo = {"KSVG::SVGDefsElementImpl",0,0,0};
+const ClassInfo SVGDefsElementImpl::s_classInfo = {"KSVG::SVGDefsElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGDescElementImpl::s_tagName = "desc";
-const ClassInfo SVGDescElementImpl::s_classInfo = {"KSVG::SVGDescElementImpl",0,0,0};
-const ClassInfo SVGDocumentImpl::s_classInfo = {"KSVG::SVGDocumentImpl",0,&SVGDocumentImpl::s_hashTable,0};
-const ClassInfo SVGElementImpl::s_classInfo = {"KSVG::SVGElementImpl",0,&SVGElementImpl::s_hashTable,0};
+const ClassInfo SVGDescElementImpl::s_classInfo = {"KSVG::SVGDescElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGDocumentImpl::s_classInfo = {"KSVG::SVGDocumentImpl",nullptr,&SVGDocumentImpl::s_hashTable,nullptr};
+const ClassInfo SVGElementImpl::s_classInfo = {"KSVG::SVGElementImpl",nullptr,&SVGElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGEllipseElementImpl::s_tagName = "ellipse";
-const ClassInfo SVGEllipseElementImpl::s_classInfo = {"KSVG::SVGEllipseElementImpl",0,&SVGEllipseElementImpl::s_hashTable,0};
-const ClassInfo SVGEventImpl::s_classInfo = {"KSVG::SVGEventImpl",0,&SVGEventImpl::s_hashTable,0};
-const ClassInfo SVGExternalResourcesRequiredImpl::s_classInfo = {"KSVG::SVGExternalResourcesRequiredImpl",0,&SVGExternalResourcesRequiredImpl::s_hashTable,0};
-const ClassInfo SVGFEBlendElementImpl::s_classInfo = {"KSVG::SVGFEBlendElementImpl",0,0,0};
-const ClassInfo SVGFEColorMatrixElementImpl::s_classInfo = {"KSVG::SVGFEColorMatrixElementImpl",0,0,0};
-const ClassInfo SVGFEComponentTransferElementImpl::s_classInfo = {"KSVG::SVGFEComponentTransferElementImpl",0,0,0};
-const ClassInfo SVGFECompositeElementImpl::s_classInfo = {"KSVG::SVGFECompositeElementImpl",0,0,0};
-const ClassInfo SVGFEConvolveMatrixElementImpl::s_classInfo = {"KSVG::SVGFEConvolveMatrixElementImpl",0,0,0};
-const ClassInfo SVGFEDiffuseLightingElementImpl::s_classInfo = {"KSVG::SVGFEDiffuseLightingElementImpl",0,0,0};
-const ClassInfo SVGFEDisplacementMapElementImpl::s_classInfo = {"KSVG::SVGFEDisplacementMapElementImpl",0,0,0};
-const ClassInfo SVGFEDistantLightElementImpl::s_classInfo = {"KSVG::SVGFEDistantLightElementImpl",0,0,0};
-const ClassInfo SVGFEFloodElementImpl::s_classInfo = {"KSVG::SVGFEFloodElementImpl",0,0,0};
-const ClassInfo SVGFEFuncAElementImpl::s_classInfo = {"KSVG::SVGFEFuncAElementImpl",0,0,0};
-const ClassInfo SVGFEFuncBElementImpl::s_classInfo = {"KSVG::SVGFEFuncBElementImpl",0,0,0};
-const ClassInfo SVGFEFuncGElementImpl::s_classInfo = {"KSVG::SVGFEFuncGElementImpl",0,0,0};
-const ClassInfo SVGFEFuncRElementImpl::s_classInfo = {"KSVG::SVGFEFuncRElementImpl",0,0,0};
-const ClassInfo SVGFEGaussianBlurElementImpl::s_classInfo = {"KSVG::SVGFEGaussianBlurElementImpl",0,0,0};
-const ClassInfo SVGFEImageElementImpl::s_classInfo = {"KSVG::SVGFEImageElementImpl",0,0,0};
-const ClassInfo SVGFEMergeElementImpl::s_classInfo = {"KSVG::SVGFEMergeElementImpl",0,0,0};
-const ClassInfo SVGFEMergeNodeElementImpl::s_classInfo = {"KSVG::SVGFEMergeNodeElementImpl",0,0,0};
-const ClassInfo SVGFEMorphologyElementImpl::s_classInfo = {"KSVG::SVGFEMorphologyElementImpl",0,0,0};
-const ClassInfo SVGFEOffsetElementImpl::s_classInfo = {"KSVG::SVGFEOffsetElementImpl",0,0,0};
-const ClassInfo SVGFEPointLightElementImpl::s_classInfo = {"KSVG::SVGFEPointLightElementImpl",0,0,0};
-const ClassInfo SVGFESpecularLightingElementImpl::s_classInfo = {"KSVG::SVGFESpecularLightingElementImpl",0,0,0};
-const ClassInfo SVGFESpotLightElementImpl::s_classInfo = {"KSVG::SVGFESpotLightElementImpl",0,0,0};
-const ClassInfo SVGFETileElementImpl::s_classInfo = {"KSVG::SVGFETileElementImpl",0,0,0};
-const ClassInfo SVGFETurbulenceElementImpl::s_classInfo = {"KSVG::SVGFETurbulenceElementImpl",0,0,0};
-const ClassInfo SVGFilterElementImpl::s_classInfo = {"KSVG::SVGFilterElementImpl",0,0,0};
-const ClassInfo SVGFitToViewBoxImpl::s_classInfo = {"KSVG::SVGFitToViewBoxImpl",0,&SVGFitToViewBoxImpl::s_hashTable,0};
-const ClassInfo SVGFontElementImpl::s_classInfo = {"KSVG::SVGFontElementImpl",0,0,0};
-const ClassInfo SVGFontFaceElementImpl::s_classInfo = {"KSVG::SVGFontFaceElementImpl",0,0,0};
-const ClassInfo SVGFontFaceFormatElementImpl::s_classInfo = {"KSVG::SVGFontFaceFormatElementImpl",0,0,0};
-const ClassInfo SVGFontFaceNameElementImpl::s_classInfo = {"KSVG::SVGFontFaceNameElementImpl",0,0,0};
-const ClassInfo SVGFontFaceSrcElementImpl::s_classInfo = {"KSVG::SVGFontFaceSrcElementImpl",0,0,0};
-const ClassInfo SVGFontFaceUriElementImpl::s_classInfo = {"KSVG::SVGFontFaceUriElementImpl",0,0,0};
-const ClassInfo SVGForeignObjectElementImpl::s_classInfo = {"KSVG::SVGForeignObjectElementImpl",0,&SVGForeignObjectElementImpl::s_hashTable,0};
+const ClassInfo SVGEllipseElementImpl::s_classInfo = {"KSVG::SVGEllipseElementImpl",nullptr,&SVGEllipseElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGEventImpl::s_classInfo = {"KSVG::SVGEventImpl",nullptr,&SVGEventImpl::s_hashTable,nullptr};
+const ClassInfo SVGExternalResourcesRequiredImpl::s_classInfo = {"KSVG::SVGExternalResourcesRequiredImpl",nullptr,&SVGExternalResourcesRequiredImpl::s_hashTable,nullptr};
+const ClassInfo SVGFEBlendElementImpl::s_classInfo = {"KSVG::SVGFEBlendElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEColorMatrixElementImpl::s_classInfo = {"KSVG::SVGFEColorMatrixElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEComponentTransferElementImpl::s_classInfo = {"KSVG::SVGFEComponentTransferElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFECompositeElementImpl::s_classInfo = {"KSVG::SVGFECompositeElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEConvolveMatrixElementImpl::s_classInfo = {"KSVG::SVGFEConvolveMatrixElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEDiffuseLightingElementImpl::s_classInfo = {"KSVG::SVGFEDiffuseLightingElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEDisplacementMapElementImpl::s_classInfo = {"KSVG::SVGFEDisplacementMapElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEDistantLightElementImpl::s_classInfo = {"KSVG::SVGFEDistantLightElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEFloodElementImpl::s_classInfo = {"KSVG::SVGFEFloodElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEFuncAElementImpl::s_classInfo = {"KSVG::SVGFEFuncAElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEFuncBElementImpl::s_classInfo = {"KSVG::SVGFEFuncBElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEFuncGElementImpl::s_classInfo = {"KSVG::SVGFEFuncGElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEFuncRElementImpl::s_classInfo = {"KSVG::SVGFEFuncRElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEGaussianBlurElementImpl::s_classInfo = {"KSVG::SVGFEGaussianBlurElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEImageElementImpl::s_classInfo = {"KSVG::SVGFEImageElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEMergeElementImpl::s_classInfo = {"KSVG::SVGFEMergeElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEMergeNodeElementImpl::s_classInfo = {"KSVG::SVGFEMergeNodeElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEMorphologyElementImpl::s_classInfo = {"KSVG::SVGFEMorphologyElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEOffsetElementImpl::s_classInfo = {"KSVG::SVGFEOffsetElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFEPointLightElementImpl::s_classInfo = {"KSVG::SVGFEPointLightElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFESpecularLightingElementImpl::s_classInfo = {"KSVG::SVGFESpecularLightingElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFESpotLightElementImpl::s_classInfo = {"KSVG::SVGFESpotLightElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFETileElementImpl::s_classInfo = {"KSVG::SVGFETileElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFETurbulenceElementImpl::s_classInfo = {"KSVG::SVGFETurbulenceElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFilterElementImpl::s_classInfo = {"KSVG::SVGFilterElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFitToViewBoxImpl::s_classInfo = {"KSVG::SVGFitToViewBoxImpl",nullptr,&SVGFitToViewBoxImpl::s_hashTable,nullptr};
+const ClassInfo SVGFontElementImpl::s_classInfo = {"KSVG::SVGFontElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFontFaceElementImpl::s_classInfo = {"KSVG::SVGFontFaceElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFontFaceFormatElementImpl::s_classInfo = {"KSVG::SVGFontFaceFormatElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFontFaceNameElementImpl::s_classInfo = {"KSVG::SVGFontFaceNameElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFontFaceSrcElementImpl::s_classInfo = {"KSVG::SVGFontFaceSrcElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGFontFaceUriElementImpl::s_classInfo = {"KSVG::SVGFontFaceUriElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGForeignObjectElementImpl::s_classInfo = {"KSVG::SVGForeignObjectElementImpl",nullptr,&SVGForeignObjectElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGGElementImpl::s_tagName = "g";
-const ClassInfo SVGGElementImpl::s_classInfo = {"KSVG::SVGGElementImpl",0,0,0};
+const ClassInfo SVGGElementImpl::s_classInfo = {"KSVG::SVGGElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGGlyphElementImpl::s_tagName = "glyph";
-const ClassInfo SVGGlyphElementImpl::s_classInfo = {"KSVG::SVGGlyphElementImpl",0,&SVGGlyphElementImpl::s_hashTable,0};
+const ClassInfo SVGGlyphElementImpl::s_classInfo = {"KSVG::SVGGlyphElementImpl",nullptr,&SVGGlyphElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGGlyphRefElementImpl::s_tagName = "glyphRef";
-const ClassInfo SVGGlyphRefElementImpl::s_classInfo = {"KSVG::SVGGlyphRefElementImpl",0,&SVGGlyphRefElementImpl::s_hashTable,0};
-const ClassInfo SVGGradientElementImpl::s_classInfo = {"KSVG::SVGGradientElementImpl",0,&SVGGradientElementImpl::s_hashTable,0};
-const ClassInfo SVGGradientElementImplConstructor::s_classInfo = {"KSVG::SVGGradientElementImplConstructor",0,&SVGGradientElementImplConstructor::s_hashTable,0};
-const ClassInfo SVGHKernElementImpl::s_classInfo = {"KSVG::SVGHKernElementImpl",0,0,0};
-const ClassInfo SVGICCColorImpl::s_classInfo = {"KSVG::SVGICCColorImpl",0,&SVGICCColorImpl::s_hashTable,0};
+const ClassInfo SVGGlyphRefElementImpl::s_classInfo = {"KSVG::SVGGlyphRefElementImpl",nullptr,&SVGGlyphRefElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGGradientElementImpl::s_classInfo = {"KSVG::SVGGradientElementImpl",nullptr,&SVGGradientElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGGradientElementImplConstructor::s_classInfo = {"KSVG::SVGGradientElementImplConstructor",nullptr,&SVGGradientElementImplConstructor::s_hashTable,nullptr};
+const ClassInfo SVGHKernElementImpl::s_classInfo = {"KSVG::SVGHKernElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGICCColorImpl::s_classInfo = {"KSVG::SVGICCColorImpl",nullptr,&SVGICCColorImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGImageElementImpl::s_tagName = "image";
-const ClassInfo SVGImageElementImpl::s_classInfo = {"KSVG::SVGImageElementImpl",0,&SVGImageElementImpl::s_hashTable,0};
-const ClassInfo SVGKeyEventImpl::s_classInfo = {"KSVG::SVGKeyEventImpl",0,&SVGKeyEventImpl::s_hashTable,0};
-const ClassInfo SVGLangSpaceImpl::s_classInfo = {"KSVG::SVGLangSpaceImpl",0,&SVGLangSpaceImpl::s_hashTable,0};
-const ClassInfo SVGLengthImpl::s_classInfo = {"KSVG::SVGLengthImpl",0,&SVGLengthImpl::s_hashTable,0};
-const ClassInfo SVGLengthImplConstructor::s_classInfo = {"KSVG::SVGLengthImplConstructor",0,&SVGLengthImplConstructor::s_hashTable,0};
-const ClassInfo SVGLengthListImpl::s_classInfo = {"KSVG::SVGLengthListImpl",0,&SVGLengthListImpl::s_hashTable,0};
+const ClassInfo SVGImageElementImpl::s_classInfo = {"KSVG::SVGImageElementImpl",nullptr,&SVGImageElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGKeyEventImpl::s_classInfo = {"KSVG::SVGKeyEventImpl",nullptr,&SVGKeyEventImpl::s_hashTable,nullptr};
+const ClassInfo SVGLangSpaceImpl::s_classInfo = {"KSVG::SVGLangSpaceImpl",nullptr,&SVGLangSpaceImpl::s_hashTable,nullptr};
+const ClassInfo SVGLengthImpl::s_classInfo = {"KSVG::SVGLengthImpl",nullptr,&SVGLengthImpl::s_hashTable,nullptr};
+const ClassInfo SVGLengthImplConstructor::s_classInfo = {"KSVG::SVGLengthImplConstructor",nullptr,&SVGLengthImplConstructor::s_hashTable,nullptr};
+const ClassInfo SVGLengthListImpl::s_classInfo = {"KSVG::SVGLengthListImpl",nullptr,&SVGLengthListImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGLineElementImpl::s_tagName = "line";
-const ClassInfo SVGLineElementImpl::s_classInfo = {"KSVG::SVGLineElementImpl",0,&SVGLineElementImpl::s_hashTable,0};
+const ClassInfo SVGLineElementImpl::s_classInfo = {"KSVG::SVGLineElementImpl",nullptr,&SVGLineElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGLinearGradientElementImpl::s_tagName = "linearGradient";
-const ClassInfo SVGLinearGradientElementImpl::s_classInfo = {"KSVG::SVGLinearGradientElementImpl",0,&SVGLinearGradientElementImpl::s_hashTable,0};
-const ClassInfo SVGLocatableImpl::s_classInfo = {"KSVG::SVGLocatableImpl",0,&SVGLocatableImpl::s_hashTable,0};
-const ClassInfo SVGMPathElementImpl::s_classInfo = {"KSVG::SVGMPathElementImpl",0,0,0};
+const ClassInfo SVGLinearGradientElementImpl::s_classInfo = {"KSVG::SVGLinearGradientElementImpl",nullptr,&SVGLinearGradientElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGLocatableImpl::s_classInfo = {"KSVG::SVGLocatableImpl",nullptr,&SVGLocatableImpl::s_hashTable,nullptr};
+const ClassInfo SVGMPathElementImpl::s_classInfo = {"KSVG::SVGMPathElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGMarkerElementImpl::s_tagName = "marker";
-const ClassInfo SVGMarkerElementImpl::s_classInfo = {"KSVG::SVGMarkerElementImpl",0,&SVGMarkerElementImpl::s_hashTable,0};
-const ClassInfo SVGMarkerElementImplConstructor::s_classInfo = {"KSVG::SVGMarkerElementImplConstructor",0,&SVGMarkerElementImplConstructor::s_hashTable,0};
+const ClassInfo SVGMarkerElementImpl::s_classInfo = {"KSVG::SVGMarkerElementImpl",nullptr,&SVGMarkerElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGMarkerElementImplConstructor::s_classInfo = {"KSVG::SVGMarkerElementImplConstructor",nullptr,&SVGMarkerElementImplConstructor::s_hashTable,nullptr};
 const DOM::DOMString SVGMaskElementImpl::s_tagName = "mask";
-const ClassInfo SVGMaskElementImpl::s_classInfo = {"KSVG::SVGMaskElementImpl",0,&SVGMaskElementImpl::s_hashTable,0};
-const ClassInfo SVGMatrixImpl::s_classInfo = {"KSVG::SVGMatrixImpl",0,&SVGMatrixImpl::s_hashTable,0};
-const ClassInfo SVGMetadataElementImpl::s_classInfo = {"KSVG::SVGMetadataElementImpl",0,0,0};
-const ClassInfo SVGMissingGlyphElementImpl::s_classInfo = {"KSVG::SVGMissingGlyphElementImpl",0,0,0};
-const ClassInfo SVGMouseEventImpl::s_classInfo = {"KSVG::SVGMouseEventImpl",0,&SVGMouseEventImpl::s_hashTable,0};
-const ClassInfo SVGMutationEventImpl::s_classInfo = {"KSVG::SVGMutationEventImpl",0,0,0};
-const ClassInfo SVGNumberImpl::s_classInfo = {"KSVG::SVGNumberImpl",0,&SVGNumberImpl::s_hashTable,0};
-const ClassInfo SVGNumberListImpl::s_classInfo = {"KSVG::SVGNumberListImpl",0,&SVGNumberListImpl::s_hashTable,0};
-const ClassInfo SVGPaintImpl::s_classInfo = {"KSVG::SVGPaintImpl",0,&SVGPaintImpl::s_hashTable,0};
-const ClassInfo SVGPaintImplConstructor::s_classInfo = {"KSVG::SVGPaintImplConstructor",0,&SVGPaintImplConstructor::s_hashTable,0};
+const ClassInfo SVGMaskElementImpl::s_classInfo = {"KSVG::SVGMaskElementImpl",nullptr,&SVGMaskElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGMatrixImpl::s_classInfo = {"KSVG::SVGMatrixImpl",nullptr,&SVGMatrixImpl::s_hashTable,nullptr};
+const ClassInfo SVGMetadataElementImpl::s_classInfo = {"KSVG::SVGMetadataElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGMissingGlyphElementImpl::s_classInfo = {"KSVG::SVGMissingGlyphElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGMouseEventImpl::s_classInfo = {"KSVG::SVGMouseEventImpl",nullptr,&SVGMouseEventImpl::s_hashTable,nullptr};
+const ClassInfo SVGMutationEventImpl::s_classInfo = {"KSVG::SVGMutationEventImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGNumberImpl::s_classInfo = {"KSVG::SVGNumberImpl",nullptr,&SVGNumberImpl::s_hashTable,nullptr};
+const ClassInfo SVGNumberListImpl::s_classInfo = {"KSVG::SVGNumberListImpl",nullptr,&SVGNumberListImpl::s_hashTable,nullptr};
+const ClassInfo SVGPaintImpl::s_classInfo = {"KSVG::SVGPaintImpl",nullptr,&SVGPaintImpl::s_hashTable,nullptr};
+const ClassInfo SVGPaintImplConstructor::s_classInfo = {"KSVG::SVGPaintImplConstructor",nullptr,&SVGPaintImplConstructor::s_hashTable,nullptr};
 const DOM::DOMString SVGPathElementImpl::s_tagName = "path";
-const ClassInfo SVGPathElementImpl::s_classInfo = {"KSVG::SVGPathElementImpl",0,&SVGPathElementImpl::s_hashTable,0};
-const ClassInfo SVGPathSegArcAbsImpl::s_classInfo = {"KSVG::SVGPathSegArcAbsImpl",0,&SVGPathSegArcAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegArcRelImpl::s_classInfo = {"KSVG::SVGPathSegArcRelImpl",0,&SVGPathSegArcRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegClosePathImpl::s_classInfo = {"KSVG::SVGPathSegClosePathImpl",0,0,0};
-const ClassInfo SVGPathSegCurvetoCubicAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicAbsImpl",0,&SVGPathSegCurvetoCubicAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoCubicRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicRelImpl",0,&SVGPathSegCurvetoCubicRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoCubicSmoothAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicSmoothAbsImpl",0,&SVGPathSegCurvetoCubicSmoothAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoCubicSmoothRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicSmoothRelImpl",0,&SVGPathSegCurvetoCubicSmoothRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoQuadraticAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticAbsImpl",0,&SVGPathSegCurvetoQuadraticAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoQuadraticRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticRelImpl",0,&SVGPathSegCurvetoQuadraticRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoQuadraticSmoothAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticSmoothAbsImpl",0,&SVGPathSegCurvetoQuadraticSmoothAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegCurvetoQuadraticSmoothRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticSmoothRelImpl",0,&SVGPathSegCurvetoQuadraticSmoothRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegImpl::s_classInfo = {"KSVG::SVGPathSegImpl",0,&SVGPathSegImpl::s_hashTable,0};
-const ClassInfo SVGPathSegImplConstructor::s_classInfo = {"KSVG::SVGPathSegImplConstructor",0,&SVGPathSegImplConstructor::s_hashTable,0};
-const ClassInfo SVGPathSegLinetoAbsImpl::s_classInfo = {"KSVG::SVGPathSegLinetoAbsImpl",0,&SVGPathSegLinetoAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegLinetoHorizontalAbsImpl::s_classInfo = {"KSVG::SVGPathSegLinetoHorizontalAbsImpl",0,&SVGPathSegLinetoHorizontalAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegLinetoHorizontalRelImpl::s_classInfo = {"KSVG::SVGPathSegLinetoHorizontalRelImpl",0,&SVGPathSegLinetoHorizontalRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegLinetoRelImpl::s_classInfo = {"KSVG::SVGPathSegLinetoRelImpl",0,&SVGPathSegLinetoRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegLinetoVerticalAbsImpl::s_classInfo = {"KSVG::SVGPathSegLinetoVerticalAbsImpl",0,&SVGPathSegLinetoVerticalAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegLinetoVerticalRelImpl::s_classInfo = {"KSVG::SVGPathSegLinetoVerticalRelImpl",0,&SVGPathSegLinetoVerticalRelImpl::s_hashTable,0};
-const ClassInfo SVGPathSegListImpl::s_classInfo = {"KSVG::SVGPathSegListImpl",0,&SVGPathSegListImpl::s_hashTable,0};
-const ClassInfo SVGPathSegMovetoAbsImpl::s_classInfo = {"KSVG::SVGPathSegMovetoAbsImpl",0,&SVGPathSegMovetoAbsImpl::s_hashTable,0};
-const ClassInfo SVGPathSegMovetoRelImpl::s_classInfo = {"KSVG::SVGPathSegMovetoRelImpl",0,&SVGPathSegMovetoRelImpl::s_hashTable,0};
+const ClassInfo SVGPathElementImpl::s_classInfo = {"KSVG::SVGPathElementImpl",nullptr,&SVGPathElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegArcAbsImpl::s_classInfo = {"KSVG::SVGPathSegArcAbsImpl",nullptr,&SVGPathSegArcAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegArcRelImpl::s_classInfo = {"KSVG::SVGPathSegArcRelImpl",nullptr,&SVGPathSegArcRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegClosePathImpl::s_classInfo = {"KSVG::SVGPathSegClosePathImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGPathSegCurvetoCubicAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicAbsImpl",nullptr,&SVGPathSegCurvetoCubicAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoCubicRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicRelImpl",nullptr,&SVGPathSegCurvetoCubicRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoCubicSmoothAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicSmoothAbsImpl",nullptr,&SVGPathSegCurvetoCubicSmoothAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoCubicSmoothRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoCubicSmoothRelImpl",nullptr,&SVGPathSegCurvetoCubicSmoothRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoQuadraticAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticAbsImpl",nullptr,&SVGPathSegCurvetoQuadraticAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoQuadraticRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticRelImpl",nullptr,&SVGPathSegCurvetoQuadraticRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoQuadraticSmoothAbsImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticSmoothAbsImpl",nullptr,&SVGPathSegCurvetoQuadraticSmoothAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegCurvetoQuadraticSmoothRelImpl::s_classInfo = {"KSVG::SVGPathSegCurvetoQuadraticSmoothRelImpl",nullptr,&SVGPathSegCurvetoQuadraticSmoothRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegImpl::s_classInfo = {"KSVG::SVGPathSegImpl",nullptr,&SVGPathSegImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegImplConstructor::s_classInfo = {"KSVG::SVGPathSegImplConstructor",nullptr,&SVGPathSegImplConstructor::s_hashTable,nullptr};
+const ClassInfo SVGPathSegLinetoAbsImpl::s_classInfo = {"KSVG::SVGPathSegLinetoAbsImpl",nullptr,&SVGPathSegLinetoAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegLinetoHorizontalAbsImpl::s_classInfo = {"KSVG::SVGPathSegLinetoHorizontalAbsImpl",nullptr,&SVGPathSegLinetoHorizontalAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegLinetoHorizontalRelImpl::s_classInfo = {"KSVG::SVGPathSegLinetoHorizontalRelImpl",nullptr,&SVGPathSegLinetoHorizontalRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegLinetoRelImpl::s_classInfo = {"KSVG::SVGPathSegLinetoRelImpl",nullptr,&SVGPathSegLinetoRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegLinetoVerticalAbsImpl::s_classInfo = {"KSVG::SVGPathSegLinetoVerticalAbsImpl",nullptr,&SVGPathSegLinetoVerticalAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegLinetoVerticalRelImpl::s_classInfo = {"KSVG::SVGPathSegLinetoVerticalRelImpl",nullptr,&SVGPathSegLinetoVerticalRelImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegListImpl::s_classInfo = {"KSVG::SVGPathSegListImpl",nullptr,&SVGPathSegListImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegMovetoAbsImpl::s_classInfo = {"KSVG::SVGPathSegMovetoAbsImpl",nullptr,&SVGPathSegMovetoAbsImpl::s_hashTable,nullptr};
+const ClassInfo SVGPathSegMovetoRelImpl::s_classInfo = {"KSVG::SVGPathSegMovetoRelImpl",nullptr,&SVGPathSegMovetoRelImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGPatternElementImpl::s_tagName = "pattern";
-const ClassInfo SVGPatternElementImpl::s_classInfo = {"KSVG::SVGPatternElementImpl",0,&SVGPatternElementImpl::s_hashTable,0};
-const ClassInfo SVGPointImpl::s_classInfo = {"KSVG::SVGPointImpl",0,&SVGPointImpl::s_hashTable,0};
-const ClassInfo SVGPointListImpl::s_classInfo = {"KSVG::SVGPointListImpl",0,&SVGPointListImpl::s_hashTable,0};
-const ClassInfo SVGPolyElementImpl::s_classInfo = {"KSVG::SVGPolyElementImpl",0,0,0};
+const ClassInfo SVGPatternElementImpl::s_classInfo = {"KSVG::SVGPatternElementImpl",nullptr,&SVGPatternElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGPointImpl::s_classInfo = {"KSVG::SVGPointImpl",nullptr,&SVGPointImpl::s_hashTable,nullptr};
+const ClassInfo SVGPointListImpl::s_classInfo = {"KSVG::SVGPointListImpl",nullptr,&SVGPointListImpl::s_hashTable,nullptr};
+const ClassInfo SVGPolyElementImpl::s_classInfo = {"KSVG::SVGPolyElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGPolygonElementImpl::s_tagName = "polygon";
-const ClassInfo SVGPolygonElementImpl::s_classInfo = {"KSVG::SVGPolygonElementImpl",0,0,0};
+const ClassInfo SVGPolygonElementImpl::s_classInfo = {"KSVG::SVGPolygonElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGPolylineElementImpl::s_tagName = "polyline";
-const ClassInfo SVGPolylineElementImpl::s_classInfo = {"KSVG::SVGPolylineElementImpl",0,0,0};
-const ClassInfo SVGPreserveAspectRatioImpl::s_classInfo = {"KSVG::SVGPreserveAspectRatioImpl",0,&SVGPreserveAspectRatioImpl::s_hashTable,0};
-const ClassInfo SVGPreserveAspectRatioImplConstructor::s_classInfo = {"KSVG::SVGPreserveAspectRatioImplConstructor",0,&SVGPreserveAspectRatioImplConstructor::s_hashTable,0};
+const ClassInfo SVGPolylineElementImpl::s_classInfo = {"KSVG::SVGPolylineElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGPreserveAspectRatioImpl::s_classInfo = {"KSVG::SVGPreserveAspectRatioImpl",nullptr,&SVGPreserveAspectRatioImpl::s_hashTable,nullptr};
+const ClassInfo SVGPreserveAspectRatioImplConstructor::s_classInfo = {"KSVG::SVGPreserveAspectRatioImplConstructor",nullptr,&SVGPreserveAspectRatioImplConstructor::s_hashTable,nullptr};
 const DOM::DOMString SVGRadialGradientElementImpl::s_tagName = "radialGradient";
-const ClassInfo SVGRadialGradientElementImpl::s_classInfo = {"KSVG::SVGRadialGradientElementImpl",0,&SVGRadialGradientElementImpl::s_hashTable,0};
+const ClassInfo SVGRadialGradientElementImpl::s_classInfo = {"KSVG::SVGRadialGradientElementImpl",nullptr,&SVGRadialGradientElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGRectElementImpl::s_tagName = "rect";
-const ClassInfo SVGRectElementImpl::s_classInfo = {"KSVG::SVGRectElementImpl",0,&SVGRectElementImpl::s_hashTable,0};
-const ClassInfo SVGRectImpl::s_classInfo = {"KSVG::SVGRectImpl",0,&SVGRectImpl::s_hashTable,0};
+const ClassInfo SVGRectElementImpl::s_classInfo = {"KSVG::SVGRectElementImpl",nullptr,&SVGRectElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGRectImpl::s_classInfo = {"KSVG::SVGRectImpl",nullptr,&SVGRectImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGSVGElementImpl::s_tagName = "svg";
-const ClassInfo SVGSVGElementImpl::s_classInfo = {"KSVG::SVGSVGElementImpl",0,&SVGSVGElementImpl::s_hashTable,0};
+const ClassInfo SVGSVGElementImpl::s_classInfo = {"KSVG::SVGSVGElementImpl",nullptr,&SVGSVGElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGScriptElementImpl::s_tagName = "script";
-const ClassInfo SVGScriptElementImpl::s_classInfo = {"KSVG::SVGScriptElementImpl",0,&SVGScriptElementImpl::s_hashTable,0};
+const ClassInfo SVGScriptElementImpl::s_classInfo = {"KSVG::SVGScriptElementImpl",nullptr,&SVGScriptElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGSetElementImpl::s_tagName = "set";
-const ClassInfo SVGSetElementImpl::s_classInfo = {"KSVG::SVGSetElementImpl",0,0,0};
-const ClassInfo SVGShapeImpl::s_classInfo = {"KSVG::SVGShapeImpl",0,0,0};
+const ClassInfo SVGSetElementImpl::s_classInfo = {"KSVG::SVGSetElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGShapeImpl::s_classInfo = {"KSVG::SVGShapeImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGStopElementImpl::s_tagName = "stop";
-const ClassInfo SVGStopElementImpl::s_classInfo = {"KSVG::SVGStopElementImpl",0,&SVGStopElementImpl::s_hashTable,0};
-const ClassInfo SVGStringListImpl::s_classInfo = {"KSVG::SVGStringListImpl",0,&SVGStringListImpl::s_hashTable,0};
-const ClassInfo SVGStylableImpl::s_classInfo = {"KSVG::SVGStylableImpl",0,&SVGStylableImpl::s_hashTable,0};
+const ClassInfo SVGStopElementImpl::s_classInfo = {"KSVG::SVGStopElementImpl",nullptr,&SVGStopElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGStringListImpl::s_classInfo = {"KSVG::SVGStringListImpl",nullptr,&SVGStringListImpl::s_hashTable,nullptr};
+const ClassInfo SVGStylableImpl::s_classInfo = {"KSVG::SVGStylableImpl",nullptr,&SVGStylableImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGStyleElementImpl::s_tagName = "style";
-const ClassInfo SVGStyleElementImpl::s_classInfo = {"KSVG::SVGStyleElementImpl",0,&SVGStyleElementImpl::s_hashTable,0};
+const ClassInfo SVGStyleElementImpl::s_classInfo = {"KSVG::SVGStyleElementImpl",nullptr,&SVGStyleElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGSwitchElementImpl::s_tagName = "switch";
-const ClassInfo SVGSwitchElementImpl::s_classInfo = {"KSVG::SVGSwitchElementImpl",0,0,0};
+const ClassInfo SVGSwitchElementImpl::s_classInfo = {"KSVG::SVGSwitchElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGSymbolElementImpl::s_tagName = "symbol";
-const ClassInfo SVGSymbolElementImpl::s_classInfo = {"KSVG::SVGSymbolElementImpl",0,&SVGSymbolElementImpl::s_hashTable,0};
+const ClassInfo SVGSymbolElementImpl::s_classInfo = {"KSVG::SVGSymbolElementImpl",nullptr,&SVGSymbolElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGTRefElementImpl::s_tagName = "tref";
-const ClassInfo SVGTRefElementImpl::s_classInfo = {"KSVG::SVGTRefElementImpl",0,0,0};
+const ClassInfo SVGTRefElementImpl::s_classInfo = {"KSVG::SVGTRefElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGTSpanElementImpl::s_tagName = "tspan";
-const ClassInfo SVGTSpanElementImpl::s_classInfo = {"KSVG::SVGTSpanElementImpl",0,0,0};
-const ClassInfo SVGTestsImpl::s_classInfo = {"KSVG::SVGTestsImpl",0,&SVGTestsImpl::s_hashTable,0};
-const ClassInfo SVGTextContentElementImpl::s_classInfo = {"KSVG::SVGTextContentElementImpl",0,&SVGTextContentElementImpl::s_hashTable,0};
-const ClassInfo SVGTextContentElementImplConstructor::s_classInfo = {"KSVG::SVGTextContentElementImplConstructor",0,&SVGTextContentElementImplConstructor::s_hashTable,0};
+const ClassInfo SVGTSpanElementImpl::s_classInfo = {"KSVG::SVGTSpanElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGTestsImpl::s_classInfo = {"KSVG::SVGTestsImpl",nullptr,&SVGTestsImpl::s_hashTable,nullptr};
+const ClassInfo SVGTextContentElementImpl::s_classInfo = {"KSVG::SVGTextContentElementImpl",nullptr,&SVGTextContentElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGTextContentElementImplConstructor::s_classInfo = {"KSVG::SVGTextContentElementImplConstructor",nullptr,&SVGTextContentElementImplConstructor::s_hashTable,nullptr};
 const DOM::DOMString SVGTextElementImpl::s_tagName = "text";
-const ClassInfo SVGTextElementImpl::s_classInfo = {"KSVG::SVGTextElementImpl",0,0,0};
+const ClassInfo SVGTextElementImpl::s_classInfo = {"KSVG::SVGTextElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGTextPathElementImpl::s_tagName = "textPath";
-const ClassInfo SVGTextPathElementImpl::s_classInfo = {"KSVG::SVGTextPathElementImpl",0,&SVGTextPathElementImpl::s_hashTable,0};
-const ClassInfo SVGTextPathElementImplConstructor::s_classInfo = {"KSVG::SVGTextPathElementImplConstructor",0,&SVGTextPathElementImplConstructor::s_hashTable,0};
-const ClassInfo SVGTextPositioningElementImpl::s_classInfo = {"KSVG::SVGTextPositioningElementImpl",0,&SVGTextPositioningElementImpl::s_hashTable,0};
+const ClassInfo SVGTextPathElementImpl::s_classInfo = {"KSVG::SVGTextPathElementImpl",nullptr,&SVGTextPathElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGTextPathElementImplConstructor::s_classInfo = {"KSVG::SVGTextPathElementImplConstructor",nullptr,&SVGTextPathElementImplConstructor::s_hashTable,nullptr};
+const ClassInfo SVGTextPositioningElementImpl::s_classInfo = {"KSVG::SVGTextPositioningElementImpl",nullptr,&SVGTextPositioningElementImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGTitleElementImpl::s_tagName = "title";
-const ClassInfo SVGTitleElementImpl::s_classInfo = {"KSVG::SVGTitleElementImpl",0,0,0};
-const ClassInfo SVGTransformImpl::s_classInfo = {"KSVG::SVGTransformImpl",0,&SVGTransformImpl::s_hashTable,0};
-const ClassInfo SVGTransformImplConstructor::s_classInfo = {"KSVG::SVGTransformImplConstructor",0,&SVGTransformImplConstructor::s_hashTable,0};
-const ClassInfo SVGTransformListImpl::s_classInfo = {"KSVG::SVGTransformListImpl",0,&SVGTransformListImpl::s_hashTable,0};
-const ClassInfo SVGTransformableImpl::s_classInfo = {"KSVG::SVGTransformableImpl",0,&SVGTransformableImpl::s_hashTable,0};
-const ClassInfo SVGUIEventImpl::s_classInfo = {"KSVG::SVGUIEventImpl",0,&SVGUIEventImpl::s_hashTable,0};
-const ClassInfo SVGURIReferenceImpl::s_classInfo = {"KSVG::SVGURIReferenceImpl",0,&SVGURIReferenceImpl::s_hashTable,0};
+const ClassInfo SVGTitleElementImpl::s_classInfo = {"KSVG::SVGTitleElementImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGTransformImpl::s_classInfo = {"KSVG::SVGTransformImpl",nullptr,&SVGTransformImpl::s_hashTable,nullptr};
+const ClassInfo SVGTransformImplConstructor::s_classInfo = {"KSVG::SVGTransformImplConstructor",nullptr,&SVGTransformImplConstructor::s_hashTable,nullptr};
+const ClassInfo SVGTransformListImpl::s_classInfo = {"KSVG::SVGTransformListImpl",nullptr,&SVGTransformListImpl::s_hashTable,nullptr};
+const ClassInfo SVGTransformableImpl::s_classInfo = {"KSVG::SVGTransformableImpl",nullptr,&SVGTransformableImpl::s_hashTable,nullptr};
+const ClassInfo SVGUIEventImpl::s_classInfo = {"KSVG::SVGUIEventImpl",nullptr,&SVGUIEventImpl::s_hashTable,nullptr};
+const ClassInfo SVGURIReferenceImpl::s_classInfo = {"KSVG::SVGURIReferenceImpl",nullptr,&SVGURIReferenceImpl::s_hashTable,nullptr};
 const DOM::DOMString SVGUseElementImpl::s_tagName = "use";
-const ClassInfo SVGUseElementImpl::s_classInfo = {"KSVG::SVGUseElementImpl",0,&SVGUseElementImpl::s_hashTable,0};
-const ClassInfo SVGVKernElementImpl::s_classInfo = {"KSVG::SVGVKernElementImpl",0,0,0};
+const ClassInfo SVGUseElementImpl::s_classInfo = {"KSVG::SVGUseElementImpl",nullptr,&SVGUseElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGVKernElementImpl::s_classInfo = {"KSVG::SVGVKernElementImpl",nullptr,nullptr,nullptr};
 const DOM::DOMString SVGViewElementImpl::s_tagName = "view";
-const ClassInfo SVGViewElementImpl::s_classInfo = {"KSVG::SVGViewElementImpl",0,&SVGViewElementImpl::s_hashTable,0};
-const ClassInfo SVGViewSpecImpl::s_classInfo = {"KSVG::SVGViewSpecImpl",0,0,0};
-const ClassInfo SVGZoomAndPanImpl::s_classInfo = {"KSVG::SVGZoomAndPanImpl",0,&SVGZoomAndPanImpl::s_hashTable,0};
-const ClassInfo SVGZoomAndPanImplConstructor::s_classInfo = {"KSVG::SVGZoomAndPanImplConstructor",0,&SVGZoomAndPanImplConstructor::s_hashTable,0};
-const ClassInfo SVGZoomEventImpl::s_classInfo = {"KSVG::SVGZoomEventImpl",0,&SVGZoomEventImpl::s_hashTable,0};
-const ClassInfo SharedString::s_classInfo = {"KSVG::SharedString",0,&SharedString::s_hashTable,0};
+const ClassInfo SVGViewElementImpl::s_classInfo = {"KSVG::SVGViewElementImpl",nullptr,&SVGViewElementImpl::s_hashTable,nullptr};
+const ClassInfo SVGViewSpecImpl::s_classInfo = {"KSVG::SVGViewSpecImpl",nullptr,nullptr,nullptr};
+const ClassInfo SVGZoomAndPanImpl::s_classInfo = {"KSVG::SVGZoomAndPanImpl",nullptr,&SVGZoomAndPanImpl::s_hashTable,nullptr};
+const ClassInfo SVGZoomAndPanImplConstructor::s_classInfo = {"KSVG::SVGZoomAndPanImplConstructor",nullptr,&SVGZoomAndPanImplConstructor::s_hashTable,nullptr};
+const ClassInfo SVGZoomEventImpl::s_classInfo = {"KSVG::SVGZoomEventImpl",nullptr,&SVGZoomEventImpl::s_hashTable,nullptr};
+const ClassInfo SharedString::s_classInfo = {"KSVG::SharedString",nullptr,&SharedString::s_hashTable,nullptr};
 
 bool SVGAElementImpl::hasProperty(ExecState *p1,const Identifier &p2) const
 {
@@ -566,7 +566,7 @@ SVGAngleImpl *SVGAngleImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGAngleImpl> *test = dynamic_cast<const KSVGBridge<SVGAngleImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGAngleImpl::getInParents(GET_METHOD_ARGS) const
@@ -1294,7 +1294,7 @@ SVGAnimationElementImpl *SVGAnimationElementImplProtoFunc::cast(const ObjectImp
     if(test) return test->impl(); }
     { const KSVGBridge<SVGSetElementImpl> *test = dynamic_cast<const KSVGBridge<SVGSetElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGAnimationElementImpl::getInParents(GET_METHOD_ARGS) const
@@ -1518,7 +1518,7 @@ SVGColorImpl *SVGColorImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGPaintImpl> *test = dynamic_cast<const KSVGBridge<SVGPaintImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGColorImpl::getInParents(GET_METHOD_ARGS) const
@@ -1772,7 +1772,7 @@ SVGDOMCharacterDataBridge *SVGDOMCharacterDataBridgeProtoFunc::cast(const Object
     if(test) return test->impl(); }
     { const KSVGBridge<SVGDOMTextBridge> *test = dynamic_cast<const KSVGBridge<SVGDOMTextBridge> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDOMCharacterDataBridge::getInParents(GET_METHOD_ARGS) const
@@ -1826,7 +1826,7 @@ SVGDOMDOMImplementationBridge *SVGDOMDOMImplementationBridgeProtoFunc::cast(cons
 {
     { const KSVGBridge<SVGDOMDOMImplementationBridge> *test = dynamic_cast<const KSVGBridge<SVGDOMDOMImplementationBridge> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDOMDOMImplementationBridge::getInParents(GET_METHOD_ARGS) const
@@ -2090,7 +2090,7 @@ SVGDOMElementBridge *SVGDOMElementBridgeProtoFunc::cast(const ObjectImp *p1) con
     if(test) return test->impl(); }
     { const KSVGBridge<SVGViewElementImpl> *test = dynamic_cast<const KSVGBridge<SVGViewElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDOMElementBridge::getInParents(GET_METHOD_ARGS) const
@@ -2332,7 +2332,7 @@ SVGDOMNodeBridge *KSVG::toNodeBridge(const ObjectImp *p1)
     if(test) return test->impl(); }
     { const KSVGBridge<SVGViewElementImpl> *test = dynamic_cast<const KSVGBridge<SVGViewElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDOMNodeBridge::getInParents(GET_METHOD_ARGS) const
@@ -2383,7 +2383,7 @@ SVGDOMNodeListBridge *SVGDOMNodeListBridgeProtoFunc::cast(const ObjectImp *p1) c
 {
     { const KSVGBridge<SVGDOMNodeListBridge> *test = dynamic_cast<const KSVGBridge<SVGDOMNodeListBridge> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDOMNodeListBridge::getInParents(GET_METHOD_ARGS) const
@@ -2424,7 +2424,7 @@ SVGDOMTextBridge *SVGDOMTextBridgeProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGDOMTextBridge> *test = dynamic_cast<const KSVGBridge<SVGDOMTextBridge> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDOMTextBridge::getInParents(GET_METHOD_ARGS) const
@@ -2622,7 +2622,7 @@ SVGDocumentImpl *SVGDocumentImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGDocumentImpl> *test = dynamic_cast<const KSVGBridge<SVGDocumentImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGDocumentImpl::getInParents(GET_METHOD_ARGS) const
@@ -2853,7 +2853,7 @@ SVGElementImpl *SVGElementImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGViewElementImpl> *test = dynamic_cast<const KSVGBridge<SVGViewElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGElementImpl::getInParents(GET_METHOD_ARGS) const
@@ -3001,7 +3001,7 @@ SVGEventImpl *SVGEventImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGZoomEventImpl> *test = dynamic_cast<const KSVGBridge<SVGZoomEventImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGEventImpl::getInParents(GET_METHOD_ARGS) const
@@ -4673,7 +4673,7 @@ SVGKeyEventImpl *SVGKeyEventImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGKeyEventImpl> *test = dynamic_cast<const KSVGBridge<SVGKeyEventImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGKeyEventImpl::getInParents(GET_METHOD_ARGS) const
@@ -4754,7 +4754,7 @@ SVGLengthImpl *SVGLengthImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGLengthImpl> *test = dynamic_cast<const KSVGBridge<SVGLengthImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGLengthImpl::getInParents(GET_METHOD_ARGS) const
@@ -4835,7 +4835,7 @@ SVGLengthListImpl *SVGLengthListImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGLengthListImpl> *test = dynamic_cast<const KSVGBridge<SVGLengthListImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGLengthListImpl::getInParents(GET_METHOD_ARGS) const
@@ -5041,7 +5041,7 @@ SVGLocatableImpl *SVGLocatableImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGUseElementImpl> *test = dynamic_cast<const KSVGBridge<SVGUseElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGLocatableImpl::getInParents(GET_METHOD_ARGS) const
@@ -5130,7 +5130,7 @@ SVGMarkerElementImpl *SVGMarkerElementImplProtoFunc::cast(const ObjectImp *p1) c
 {
     { const KSVGBridge<SVGMarkerElementImpl> *test = dynamic_cast<const KSVGBridge<SVGMarkerElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGMarkerElementImpl::getInParents(GET_METHOD_ARGS) const
@@ -5312,7 +5312,7 @@ SVGMatrixImpl *SVGMatrixImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGMatrixImpl> *test = dynamic_cast<const KSVGBridge<SVGMatrixImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGMatrixImpl::getInParents(GET_METHOD_ARGS) const
@@ -5434,7 +5434,7 @@ SVGMouseEventImpl *SVGMouseEventImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGMouseEventImpl> *test = dynamic_cast<const KSVGBridge<SVGMouseEventImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGMouseEventImpl::getInParents(GET_METHOD_ARGS) const
@@ -5538,7 +5538,7 @@ SVGNumberListImpl *SVGNumberListImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGNumberListImpl> *test = dynamic_cast<const KSVGBridge<SVGNumberListImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGNumberListImpl::getInParents(GET_METHOD_ARGS) const
@@ -5645,7 +5645,7 @@ SVGPathElementImpl *SVGPathElementImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGPathElementImpl> *test = dynamic_cast<const KSVGBridge<SVGPathElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGPathElementImpl::getInParents(GET_METHOD_ARGS) const
@@ -6469,7 +6469,7 @@ SVGPathSegListImpl *SVGPathSegListImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGPathSegListImpl> *test = dynamic_cast<const KSVGBridge<SVGPathSegListImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGPathSegListImpl::getInParents(GET_METHOD_ARGS) const
@@ -6717,7 +6717,7 @@ SVGPointListImpl *SVGPointListImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGPointListImpl> *test = dynamic_cast<const KSVGBridge<SVGPointListImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGPointListImpl::getInParents(GET_METHOD_ARGS) const
@@ -7147,7 +7147,7 @@ SVGSVGElementImpl *SVGSVGElementImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGSVGElementImpl> *test = dynamic_cast<const KSVGBridge<SVGSVGElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGSVGElementImpl::getInParents(GET_METHOD_ARGS) const
@@ -7422,7 +7422,7 @@ SVGStringListImpl *SVGStringListImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGStringListImpl> *test = dynamic_cast<const KSVGBridge<SVGStringListImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGStringListImpl::getInParents(GET_METHOD_ARGS) const
@@ -7544,7 +7544,7 @@ SVGStylableImpl *SVGStylableImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGUseElementImpl> *test = dynamic_cast<const KSVGBridge<SVGUseElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGStylableImpl::getInParents(GET_METHOD_ARGS) const
@@ -7930,7 +7930,7 @@ SVGTestsImpl *SVGTestsImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGUseElementImpl> *test = dynamic_cast<const KSVGBridge<SVGUseElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGTestsImpl::getInParents(GET_METHOD_ARGS) const
@@ -7998,7 +7998,7 @@ SVGTextContentElementImpl *SVGTextContentElementImplProtoFunc::cast(const Object
     if(test) return test->impl(); }
     { const KSVGBridge<SVGTextPositioningElementImpl> *test = dynamic_cast<const KSVGBridge<SVGTextPositioningElementImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGTextContentElementImpl::getInParents(GET_METHOD_ARGS) const
@@ -8323,7 +8323,7 @@ SVGTransformImpl *SVGTransformImplProtoFunc::cast(const ObjectImp *p1) const
 {
     { const KSVGBridge<SVGTransformImpl> *test = dynamic_cast<const KSVGBridge<SVGTransformImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGTransformImpl::getInParents(GET_METHOD_ARGS) const
@@ -8393,7 +8393,7 @@ SVGTransformListImpl *SVGTransformListImplProtoFunc::cast(const ObjectImp *p1) c
 {
     { const KSVGBridge<SVGTransformListImpl> *test = dynamic_cast<const KSVGBridge<SVGTransformListImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGTransformListImpl::getInParents(GET_METHOD_ARGS) const
@@ -8481,7 +8481,7 @@ SVGUIEventImpl *SVGUIEventImplProtoFunc::cast(const ObjectImp *p1) const
     if(test) return test->impl(); }
     { const KSVGBridge<SVGZoomEventImpl> *test = dynamic_cast<const KSVGBridge<SVGZoomEventImpl> * >(p1);
     if(test) return test->impl(); }
-    return 0;
+    return nullptr;
 }
 
 Value SVGUIEventImpl::getInParents(GET_METHOD_ARGS) const
diff --git a/ksvg/impl/libs/libtext2path/src/BezierPath.h b/ksvg/impl/libs/libtext2path/src/BezierPath.h
index 2526ee6c..7caa3c7a 100644
--- a/ksvg/impl/libs/libtext2path/src/BezierPath.h
+++ b/ksvg/impl/libs/libtext2path/src/BezierPath.h
@@ -42,7 +42,7 @@ namespace T2P
 		 * 0 <= t <= 1. The tangent vector and the normal vector are
 		 * normalized (length=1).
 		 */
-		virtual void pointTangentNormalAt(double t, Point *p = 0, Point *tn = 0, Point *n = 0) = 0;		
+		virtual void pointTangentNormalAt(double t, Point *p = nullptr, Point *tn = nullptr, Point *n = nullptr) = 0;
 	
 		/**
 		 * Calculates the axis-aligned bounding box.
diff --git a/ksvg/impl/libs/libtext2path/src/Converter.cpp b/ksvg/impl/libs/libtext2path/src/Converter.cpp
index 6434798e..8761de22 100644
--- a/ksvg/impl/libs/libtext2path/src/Converter.cpp
+++ b/ksvg/impl/libs/libtext2path/src/Converter.cpp
@@ -53,7 +53,7 @@ Converter::Converter(GlyphTracer *tracer) : m_glyphTracer(tracer)
 {
 	m_init = false;
 	m_kerning = true;
-	m_library = 0;
+	m_library = nullptr;
 }
 
 Converter::~Converter()
@@ -219,7 +219,7 @@ SharedGlyph Converter::calcGlyph(const GlyphRenderParams *params, Affine &affine
 			matrix.yx = (FT_Fixed)( sin(angle) * 0x10000L);
 			matrix.yy = (FT_Fixed)( cos(angle) * 0x10000L);
 
-			FT_Glyph_Transform(reinterpret_cast<FT_Glyph>(ftGlyph), &matrix, 0);
+			FT_Glyph_Transform(reinterpret_cast<FT_Glyph>(ftGlyph), &matrix, nullptr);
 		}
 	}
 
@@ -250,7 +250,7 @@ SharedGlyph Converter::calcGlyph(const GlyphRenderParams *params, Affine &affine
 
 GlyphSet *Converter::calcString(Font *font, const unsigned short *text, unsigned int length, Affine &affine, const GlyphLayoutParams *params, BezierPath *bpath)
 {
-	unsigned short *bidi = 0;
+	unsigned short *bidi = nullptr;
 
 	// 0. Apply BiDi Rules
 	if(params->useBidi())
@@ -263,7 +263,7 @@ GlyphSet *Converter::calcString(Font *font, const unsigned short *text, unsigned
 		for(unsigned int i = 0; i < length; i++)
 			unicodeIn[i] = text[i];
 	
-		fribidi_log2vis(unicodeIn, length, &baseDir, unicodeOut, 0, 0, 0); 
+		fribidi_log2vis(unicodeIn, length, &baseDir, unicodeOut, nullptr, nullptr, nullptr);
 	
 		for(unsigned int i = 0; i < length; i++)
 			bidi[i] = unicodeOut[i];
diff --git a/ksvg/impl/libs/libtext2path/src/Converter.h b/ksvg/impl/libs/libtext2path/src/Converter.h
index 7f76533f..4eaceffe 100644
--- a/ksvg/impl/libs/libtext2path/src/Converter.h
+++ b/ksvg/impl/libs/libtext2path/src/Converter.h
@@ -63,7 +63,7 @@ namespace T2P
 		SharedFont requestFont(const FontVisualParams *params);
 		GlyphAffinePair *requestGlyph(GlyphRenderParams *params, Rectangle &bbox, Affine &affine, bool onlyLatin);
 
-		GlyphSet *calcString(Font *font, const unsigned short *text, unsigned int length, Affine &affine, const GlyphLayoutParams *params, BezierPath *bpath = 0);
+		GlyphSet *calcString(Font *font, const unsigned short *text, unsigned int length, Affine &affine, const GlyphLayoutParams *params, BezierPath *bpath = nullptr);
 		SharedGlyph calcGlyph(const GlyphRenderParams *params, Affine &affine, bool onlyLatin);
 	
 		void selectGlyph(GlyphRenderParams *params);
diff --git a/ksvg/impl/libs/libtext2path/src/Font.cpp b/ksvg/impl/libs/libtext2path/src/Font.cpp
index a9db7113..6bff768c 100644
--- a/ksvg/impl/libs/libtext2path/src/Font.cpp
+++ b/ksvg/impl/libs/libtext2path/src/Font.cpp
@@ -100,8 +100,8 @@ Font::Font(Converter *context) : m_context(context)
 {
 	m_ready = false;
 
-	m_fontFace = 0;
-	m_fontParams = 0;
+	m_fontFace = nullptr;
+	m_fontParams = nullptr;
 }
 
 Font::~Font()
@@ -124,11 +124,11 @@ std::string Font::buildRequest(const FontVisualParams *fontParams, int &id)
 	FcPattern *pattern;
 	std::string fileName;
 
-	pattern = FcPatternBuild(0,
+	pattern = FcPatternBuild(nullptr,
 							 FC_WEIGHT, FcTypeInteger, fontParams->weight(),
 							 FC_SLANT, FcTypeInteger, fontParams->slant(),
 							 FC_SIZE, FcTypeDouble, fontParams->size(),
-							 NULL);
+							 nullptr);
 
 	// Add multiple font names
 	std::list<std::string> &fontList = const_cast<FontVisualParams *>(fontParams)->fontList();
@@ -153,7 +153,7 @@ std::string Font::buildRequest(const FontVisualParams *fontParams, int &id)
 
 	// Match the pattern!
 	FcResult result;
-	FcPattern *match = FcFontMatch(0, pattern, &result);
+	FcPattern *match = FcFontMatch(nullptr, pattern, &result);
 
 	// Destroy pattern
 	FcPatternDestroy(pattern);
@@ -204,7 +204,7 @@ bool Font::load(const FontVisualParams *fontParams)
 	{
 		std::cout << "Font::load(), font does not contain outlines. Aborting!" << std::endl;
 		FT_Done_Face(m_fontFace);
-		m_fontFace = 0;
+		m_fontFace = nullptr;
 		return false;
 	}
 
@@ -220,7 +220,7 @@ bool Font::load(const FontVisualParams *fontParams)
 				std::cout << "Font::load(), unable to select unicode charmap. Aborting!" << std::endl;
 
 				FT_Done_Face(m_fontFace);
-				m_fontFace = 0;
+				m_fontFace = nullptr;
 
 				return false;
 			}
diff --git a/ksvg/impl/libs/libtext2path/src/Glyph.cpp b/ksvg/impl/libs/libtext2path/src/Glyph.cpp
index 76390e08..c973ccb6 100644
--- a/ksvg/impl/libs/libtext2path/src/Glyph.cpp
+++ b/ksvg/impl/libs/libtext2path/src/Glyph.cpp
@@ -24,13 +24,13 @@ using namespace T2P;
 
 Glyph::Glyph()
 {
-	m_bezierPath = 0;
+	m_bezierPath = nullptr;
 }
 
 Glyph::~Glyph()
 {
 	delete m_bezierPath;
-	m_bezierPath = 0;
+	m_bezierPath = nullptr;
 }
 
 Affine &Glyph::affine()
@@ -69,7 +69,7 @@ GlyphAffinePair::GlyphAffinePair(const Glyph *glyph, const Affine &affine)
 {
 	m_glyph = glyph;
 	m_affine = affine;
-	m_transformatedPath = 0;
+	m_transformatedPath = nullptr;
 }
 
 GlyphAffinePair::~GlyphAffinePair()
diff --git a/ksvg/impl/libs/libtext2path/src/GlyphTracer.cpp b/ksvg/impl/libs/libtext2path/src/GlyphTracer.cpp
index 175311c2..496d771d 100644
--- a/ksvg/impl/libs/libtext2path/src/GlyphTracer.cpp
+++ b/ksvg/impl/libs/libtext2path/src/GlyphTracer.cpp
@@ -24,11 +24,11 @@ using namespace T2P;
 
 GlyphTracer::GlyphTracer()
 {
-	m_moveTo = 0;
-	m_lineTo = 0;
-	m_conicBezier = 0;
-	m_cubicBezier = 0;
-	m_outlineMethods = 0;
+	m_moveTo = nullptr;
+	m_lineTo = nullptr;
+	m_conicBezier = nullptr;
+	m_cubicBezier = nullptr;
+	m_outlineMethods = nullptr;
 }
 
 GlyphTracer::~GlyphTracer()
diff --git a/ksvg/plugin/backends/libart/BezierPathLibart.h b/ksvg/plugin/backends/libart/BezierPathLibart.h
index c9cb4eea..6a0995eb 100644
--- a/ksvg/plugin/backends/libart/BezierPathLibart.h
+++ b/ksvg/plugin/backends/libart/BezierPathLibart.h
@@ -38,7 +38,7 @@ namespace T2P
 		~BezierPathLibart();
 
 		virtual double length(double t = 1.0);
-		virtual void pointTangentNormalAt(double t, Point *p = 0, Point *tn = 0, Point *n = 0);
+		virtual void pointTangentNormalAt(double t, Point *p = nullptr, Point *tn = nullptr, Point *n = nullptr);
 		virtual void boundingBox(Point *topLeft, Point *bottomRight);
 
 		// Don't make those private members, these are all internal anyway...
diff --git a/ksvg/plugin/backends/libart/LibartCanvas.cpp b/ksvg/plugin/backends/libart/LibartCanvas.cpp
index 4a3af267..4ecd425e 100644
--- a/ksvg/plugin/backends/libart/LibartCanvas.cpp
+++ b/ksvg/plugin/backends/libart/LibartCanvas.cpp
@@ -107,7 +107,7 @@ T2P::BezierPath *LibartCanvas::toBezierPath(CanvasItem *item) const
 {
 	LibartPath *path = dynamic_cast<LibartPath *>(item);
 	if(!path)
-		return 0;
+		return nullptr;
 
 	// Only handle LibartPath items
 	//T2P::BezierPathLibart *result = new T2P::BezierPathLibart(path->m_array.data());
@@ -308,11 +308,11 @@ ArtSVP *LibartCanvas::clipSingleSVP(ArtSVP *svp, SVGShapeImpl *shape)
 		clippedSvp = s;
 	}
 
-	if(dynamic_cast<SVGPatternElementImpl *>(shape) != 0)
+	if(dynamic_cast<SVGPatternElementImpl *>(shape))
 	{
 		// TODO: inherit clipping paths into tile space
 	}
-	else if(dynamic_cast<SVGMarkerElementImpl *>(shape) != 0)
+	else if(dynamic_cast<SVGMarkerElementImpl *>(shape))
 	{
 		SVGMarkerElementImpl *marker = static_cast<SVGMarkerElementImpl *>(shape);
 
@@ -364,12 +364,12 @@ void LibartCanvas::drawSVP(ArtSVP *svp, art_u32 color, TQByteArray mask, TQRect
 	if(m_nrChannels == 3)
 	{
 		if(mask.data())
-			art_ksvg_rgb_svp_alpha_mask(svp, x0, y0, x1 + 1, y1 + 1, color, m_buffer + x0 * 3 + y0 * 3 * m_width, m_width * 3, 0, (art_u8 *)mask.data());
+			art_ksvg_rgb_svp_alpha_mask(svp, x0, y0, x1 + 1, y1 + 1, color, m_buffer + x0 * 3 + y0 * 3 * m_width, m_width * 3, nullptr, (art_u8 *)mask.data());
 		else
-			art_rgb_svp_alpha(svp, x0, y0, x1 + 1, y1 + 1, color, m_buffer + x0 * 3 + y0 * 3 * m_width, m_width * 3, 0);
+			art_rgb_svp_alpha(svp, x0, y0, x1 + 1, y1 + 1, color, m_buffer + x0 * 3 + y0 * 3 * m_width, m_width * 3, nullptr);
 	}
 	else
-		art_ksvg_rgba_svp_alpha(svp, x0, y0, x1 + 1, y1 + 1, color, m_buffer + x0 * 4 + y0 * 4 * m_width, m_width * 4, 0, (art_u8 *)mask.data());
+		art_ksvg_rgba_svp_alpha(svp, x0, y0, x1 + 1, y1 + 1, color, m_buffer + x0 * 4 + y0 * 4 * m_width, m_width * 4, nullptr, (art_u8 *)mask.data());
 }
 
 ArtSVP *LibartCanvas::copy_svp(const ArtSVP *svp)
@@ -419,5 +419,5 @@ ArtSVP *LibartCanvas::svpFromPolygon(const KSVGPolygon& polygon)
 		return svp;
 	}
 	else
-		return 0;
+		return nullptr;
 } 
diff --git a/ksvg/plugin/backends/libart/LibartCanvasFactory.h b/ksvg/plugin/backends/libart/LibartCanvasFactory.h
index f13d43c1..3860bce4 100644
--- a/ksvg/plugin/backends/libart/LibartCanvasFactory.h
+++ b/ksvg/plugin/backends/libart/LibartCanvasFactory.h
@@ -35,7 +35,7 @@ public:
 	LibartCanvasFactory();
 	virtual ~LibartCanvasFactory();
 
-	virtual TQObject *createObject(TQObject *parent = 0, const char *pname = 0, const char *name = "TQObject", const TQStringList &args = TQStringList());
+	virtual TQObject *createObject(TQObject *parent = nullptr, const char *pname = nullptr, const char *name = "TQObject", const TQStringList &args = TQStringList());
 };
 
 }
diff --git a/ksvg/plugin/backends/libart/LibartCanvasItems.cpp b/ksvg/plugin/backends/libart/LibartCanvasItems.cpp
index a256bdf4..0ce5aee1 100644
--- a/ksvg/plugin/backends/libart/LibartCanvasItems.cpp
+++ b/ksvg/plugin/backends/libart/LibartCanvasItems.cpp
@@ -95,10 +95,10 @@ using namespace KSVG;
 
 LibartShape::LibartShape(LibartCanvas *c, SVGStylableImpl *style) : m_canvas(c), m_style(style)
 {
-	m_fillSVP = 0;
-	m_strokeSVP = 0;
-	m_fillPainter = 0;
-	m_strokePainter = 0;
+	m_fillSVP = nullptr;
+	m_strokeSVP = nullptr;
+	m_fillPainter = nullptr;
+	m_strokePainter = nullptr;
 }
 
 LibartShape::~LibartShape()
@@ -181,7 +181,7 @@ void LibartShape::update(CanvasItemUpdate reason, int param1, int param2)
 		if(m_strokeSVP)
 		{
 			art_svp_free(m_strokeSVP);
-			m_strokeSVP = 0;
+			m_strokeSVP = nullptr;
 		}
 		init();
 		m_canvas->invalidate(this, true);
@@ -287,25 +287,25 @@ void LibartShape::init()
 {
 	if(m_style->isFilled())
 	{
-		if(m_fillPainter == 0)
+		if(!m_fillPainter)
 			m_fillPainter = new LibartFillPainter(m_style);
 	}
 	else
 	{
 		delete m_fillPainter;
-		m_fillPainter = 0;
+		m_fillPainter = nullptr;
 	}
 
 	// Spec: A zero value causes no stroke to be painted.
 	if(m_style->isStroked() && m_style->getStrokeWidth()->baseVal()->value() > 0)
 	{
-		if(m_strokePainter == 0)
+		if(!m_strokePainter)
 			m_strokePainter = new LibartStrokePainter(m_style);
 	}
 	else
 	{
 		delete m_strokePainter;
-		m_strokePainter = 0;
+		m_strokePainter = nullptr;
 	}
 }
 
@@ -326,8 +326,8 @@ void LibartShape::freeSVPs()
 	if(m_strokeSVP)
 		art_svp_free(m_strokeSVP);
 
-	m_fillSVP = 0;
-	m_strokeSVP = 0;
+	m_fillSVP = nullptr;
+	m_strokeSVP = nullptr;
 }
 
 void LibartShape::calcClipSVP(ArtVpath *vec, SVGStylableImpl *style, const SVGMatrixImpl *matrix, _ArtSVP **clipSVP)
@@ -859,7 +859,7 @@ void LibartLine::init(const SVGMatrixImpl *screenCTM)
 	{
 		calcSVPs(vec, m_line, screenCTM, &m_strokeSVP, &m_fillSVP);
 		art_svp_free(m_fillSVP);
-		m_fillSVP = 0;
+		m_fillSVP = nullptr;
 	}
 	else
 		calcClipSVP(vec, m_line, screenCTM, &m_fillSVP);
@@ -1233,7 +1233,7 @@ void LibartPath::svgClosePath()
 LibartClipPath::LibartClipPath(LibartCanvas *c, SVGClipPathElementImpl *clipPath)
 : CanvasClipPath(clipPath), m_canvas(c)
 {
-	m_clipSVP = 0;
+	m_clipSVP = nullptr;
 	m_clipItems.setAutoDelete(true);
 }
 
@@ -1247,12 +1247,12 @@ void LibartClipPath::update(CanvasItemUpdate, int, int)
 {
 	if(m_clipSVP)
 		art_svp_free(m_clipSVP);
-	m_clipSVP = 0;
+	m_clipSVP = nullptr;
 }
 
 void LibartClipPath::init()
 {
-	SVGMatrixImpl *clipMatrix = 0;
+	SVGMatrixImpl *clipMatrix = nullptr;
 	
 	// Start with referencing element's coordinate system
 	SVGLocatableImpl *locatableReferrer = dynamic_cast<SVGLocatableImpl *>(m_clipPath->getBBoxTarget());
@@ -1278,7 +1278,7 @@ void LibartClipPath::init()
 	if(m_clipSVP)
 	{
 		art_svp_free(m_clipSVP);
-		m_clipSVP = 0;
+		m_clipSVP = nullptr;
 	}
 
 	DOM::Node node = m_clipPath->firstChild();
@@ -1316,7 +1316,7 @@ void LibartClipPath::init()
 				if(!one)
 					break;
 
-				if(m_clipSVP == 0)
+				if(!m_clipSVP)
 					m_clipSVP = LibartCanvas::copy_svp(one);
 				else
 				{
@@ -1436,7 +1436,7 @@ TQRect LibartText::bbox() const
 	TQPtrListIterator<SVPElement> it2(m_drawStrokeItems);
 
 	SVPElement *fill = it1.current(), *stroke = it2.current();
-	while(fill != 0 || stroke != 0)
+	while(fill || stroke)
 	{
 		ArtIRect *irect = new ArtIRect();
 		ArtVpath *vpath = art_vpath_from_svp((stroke && stroke->svp) ? stroke->svp : fill->svp);
@@ -1497,7 +1497,7 @@ void LibartText::update(CanvasItemUpdate reason, int param1, int param2)
 		TQPtrListIterator<SVPElement> it1(m_drawFillItems);
 		TQPtrListIterator<SVPElement> it2(m_drawStrokeItems);
 		SVPElement *fill = it1.current(), *stroke = it2.current();
-		while(fill != 0 || stroke != 0)
+		while(fill || stroke)
 		{
 			SVGTextContentElementImpl *text = fill ? fill->element : stroke->element;
 
@@ -1536,7 +1536,7 @@ void LibartText::update(CanvasItemUpdate reason, int param1, int param2)
 		KSVGHelper::matrixToAffine(m_text->screenCTM(), affine);
 
 		SVPElement *fill = it1.current(), *stroke = it2.current();
-		while(fill != 0 || stroke != 0)
+		while(fill || stroke)
 		{
 			SVGTextContentElementImpl *text = fill ? fill->element : stroke->element;
 
@@ -1563,7 +1563,7 @@ void LibartText::draw()
 	TQPtrListIterator<SVPElement> it2(m_drawStrokeItems);
 
 	SVPElement *fill = it1.current(), *stroke = it2.current();
-	while(fill != 0 || stroke != 0)
+	while(fill || stroke)
 	{
 		SVGTextContentElementImpl *text = fill ? fill->element : stroke->element;
 		if(!text || !text->getVisible() || !text->getDisplay() || !text->directRender())
@@ -1592,7 +1592,7 @@ bool LibartText::isVisible()
 	TQPtrListIterator<SVPElement> it2(m_drawStrokeItems);
 
 	SVPElement *fill = it1.current(), *stroke = it2.current();
-	while(fill != 0 || stroke != 0)
+	while(fill || stroke)
 	{
 		SVGTextContentElementImpl *text = fill ? fill->element : stroke->element;
 		if(text && text->getVisible() && text->getDisplay() && text->directRender())
@@ -1637,7 +1637,7 @@ void LibartText::renderCallback(SVGTextContentElementImpl *element, const SVGMat
 			result = temp;
 		}
 
-		ArtSVP *fillSVP = 0, *strokeSVP = 0;
+		ArtSVP *fillSVP = nullptr, *strokeSVP = nullptr;
 
 		if(m_context == NORMAL)
 			LibartShape::calcSVPs(result, m_text, screenCTM, &strokeSVP, &fillSVP);
@@ -1766,13 +1766,13 @@ void LibartText::initClipItem()
 
 ArtSVP *LibartText::clipSVP()
 {
-	ArtSVP *svp = 0;
+	ArtSVP *svp = nullptr;
 	TQPtrListIterator<SVPElement> it(m_drawFillItems);
 
 	SVPElement *fill = it.current();
 	while(fill && fill->svp)
 	{
-		if(svp == 0)
+		if(!svp)
 			svp = LibartCanvas::copy_svp(fill->svp);
 		else
 		{
@@ -1798,14 +1798,14 @@ ArtRender *LibartPaintServer::createRenderer(TQRect bbox, KSVGCanvas *c)
 
 	// Note: We always pass 3 for the number of channels since the ART_ALPHA parameter
 	// adds the alpha channel when present.
-	ArtRender *render = 0;
+	ArtRender *render = nullptr;
 	render = art_render_new(TQMIN(x0, x1),
 							TQMIN(y0, y1),
 							TQMAX(x0, x1) + 1,
 							TQMAX(y0, y1) + 1,
 							c->renderingBuffer() + x0 * c->nrChannels() + y0 * c->rowStride(),
 							c->rowStride(), 3, 8,
-							c->nrChannels() == 3 ? ART_ALPHA_NONE : ART_ALPHA_PREMUL, 0);
+							c->nrChannels() == 3 ? ART_ALPHA_NONE : ART_ALPHA_PREMUL, nullptr);
 
 	return render;
 }
@@ -1925,7 +1925,7 @@ void LibartLinearGradient::render(KSVGCanvas *c, ArtSVP *svp, float opacity, TQB
 
 		// Respect current transformation matrix (so gradients zoom with...)
 		SVGTransformableImpl *transformable = dynamic_cast<SVGTransformableImpl *>(getBBoxTarget());
-		SVGMatrixImpl *matrix = 0;
+		SVGMatrixImpl *matrix = nullptr;
 		if(transformable)
 			matrix = transformable->getScreenCTM();
 		else
@@ -2053,7 +2053,7 @@ void LibartRadialGradient::render(KSVGCanvas *c, ArtSVP *svp, float opacity, TQB
 
 		// Respect current transformation matrix (so gradients zoom with...)
 		SVGTransformableImpl *transformable = dynamic_cast<SVGTransformableImpl *>(getBBoxTarget());
-		SVGMatrixImpl *matrix = 0;
+		SVGMatrixImpl *matrix = nullptr;
 		if(transformable)
 			matrix = transformable->getScreenCTM();
 		else
@@ -2202,6 +2202,6 @@ void LibartPattern::render(KSVGCanvas *c, ArtSVP *svp, float opacity, TQByteArra
 
 		int alpha = int(opacity * 255 + 0.5);
 
-		ksvg_art_rgb_texture(svp, c->renderingBuffer() + screenBBox.x() * c->nrChannels() + screenBBox.y() * c->rowStride(), screenBBox.left(), screenBBox.top(), screenBBox.right() + 1, screenBBox.bottom() + 1, c->rowStride(), c->nrChannels(), tile.image().bits(), tile.image().width(), tile.image().height(), tile.image().width() * 4, affine, ART_FILTER_NEAREST, 0L, alpha, (art_u8 *)mask.data());
+		ksvg_art_rgb_texture(svp, c->renderingBuffer() + screenBBox.x() * c->nrChannels() + screenBBox.y() * c->rowStride(), screenBBox.left(), screenBBox.top(), screenBBox.right() + 1, screenBBox.bottom() + 1, c->rowStride(), c->nrChannels(), tile.image().bits(), tile.image().width(), tile.image().height(), tile.image().width() * 4, affine, ART_FILTER_NEAREST, nullptr, alpha, (art_u8 *)mask.data());
 	}
 }
diff --git a/ksvg/plugin/backends/libart/LibartCanvasItems.h b/ksvg/plugin/backends/libart/LibartCanvasItems.h
index 1e750144..56e1133b 100644
--- a/ksvg/plugin/backends/libart/LibartCanvasItems.h
+++ b/ksvg/plugin/backends/libart/LibartCanvasItems.h
@@ -395,7 +395,7 @@ namespace KSVG
 		class SVPElement
 		{
 		public:
-			SVPElement() { svp = 0; element = 0; } 
+			SVPElement() { svp = nullptr; element = nullptr; }
 			~SVPElement();
 
 			_ArtSVP *svp;
diff --git a/ksvg/plugin/ksvg_factory.cpp b/ksvg/plugin/ksvg_factory.cpp
index 43cd12bf..36ed22d3 100644
--- a/ksvg/plugin/ksvg_factory.cpp
+++ b/ksvg/plugin/ksvg_factory.cpp
@@ -40,8 +40,8 @@ extern "C"
 	}
 }
 
-TDEInstance *KSVGPluginFactory::s_instance = 0;
-TDEAboutData *KSVGPluginFactory::s_about = 0;
+TDEInstance *KSVGPluginFactory::s_instance = nullptr;
+TDEAboutData *KSVGPluginFactory::s_about = nullptr;
 
 KSVGPluginFactory::KSVGPluginFactory(TQObject *parent, const char *name) : KParts::Factory(parent, name)
 {
@@ -50,10 +50,10 @@ KSVGPluginFactory::KSVGPluginFactory(TQObject *parent, const char *name) : KPart
 KSVGPluginFactory::~KSVGPluginFactory()
 {
  	delete s_instance;
-	s_instance = 0;
+	s_instance = nullptr;
 	delete s_about;
 	
-	s_about = 0;
+	s_about = nullptr;
 }
 
 KParts::Part *KSVGPluginFactory::createPartObject(TQWidget *parentWidget, const char *wname, TQObject *parent, const char *name, const char *, const TQStringList &args)
@@ -79,11 +79,11 @@ TDEInstance *KSVGPluginFactory::instance()
 {
 	if(!s_instance)
 	{
-		s_about = new TDEAboutData("ksvg", I18N_NOOP("KSVG"), "0.1", "KSVG\nFreedom for veKtors",TDEAboutData::License_GPL_V2,"(c) 2001-2003, The KSVG Team",0,"http://svg.kde.org");
-		s_about->addAuthor("Rob Buis", 0, "buis@kde.org");
-		s_about->addAuthor("Nikolas Zimmermann", 0, "wildfox@kde.org");
-		s_about->addCredit("Adrian Page", 0);
-		s_about->addCredit("Andreas Streichardt", 0, "mop@spaceregents.de");
+		s_about = new TDEAboutData("ksvg", I18N_NOOP("KSVG"), "0.1", "KSVG\nFreedom for veKtors",TDEAboutData::License_GPL_V2,"(c) 2001-2003, The KSVG Team",nullptr,"http://svg.kde.org");
+		s_about->addAuthor("Rob Buis", nullptr, "buis@kde.org");
+		s_about->addAuthor("Nikolas Zimmermann", nullptr, "wildfox@kde.org");
+		s_about->addCredit("Adrian Page", nullptr);
+		s_about->addCredit("Andreas Streichardt", nullptr, "mop@spaceregents.de");
 		s_instance = new TDEInstance(s_about);
 	}
 	
diff --git a/ksvg/plugin/ksvg_factory.h b/ksvg/plugin/ksvg_factory.h
index 3c19ca70..95ee55cc 100644
--- a/ksvg/plugin/ksvg_factory.h
+++ b/ksvg/plugin/ksvg_factory.h
@@ -32,10 +32,10 @@ class KSVGPluginFactory : public KParts::Factory
 TQ_OBJECT
   
 public:
-	KSVGPluginFactory(TQObject *parent = 0, const char *name = 0);
+	KSVGPluginFactory(TQObject *parent = nullptr, const char *name = nullptr);
 	virtual ~KSVGPluginFactory();
 	
-	virtual KParts::Part *createPartObject(TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KParts::Part", const TQStringList &args = TQStringList());
+	virtual KParts::Part *createPartObject(TQWidget *parentWidget = nullptr, const char *widgetName = nullptr, TQObject *parent = nullptr, const char *name = nullptr, const char *classname = "KParts::Part", const TQStringList &args = TQStringList());
 	
 	static TDEInstance *instance();
 
diff --git a/ksvg/plugin/ksvg_plugin.cpp b/ksvg/plugin/ksvg_plugin.cpp
index 94414715..957006ee 100644
--- a/ksvg/plugin/ksvg_plugin.cpp
+++ b/ksvg/plugin/ksvg_plugin.cpp
@@ -93,7 +93,7 @@ KSVGPlugin::KSVGPlugin(TQWidget *wparent, const char *, TQObject *parent, const
 
 	ksvgd->zoomFactor = 1.0;
 
-	ksvgd->doc = 0;
+	ksvgd->doc = nullptr;
 
 	ksvgd->window = new KSVGWidget(this, wparent, "Rendering Widget");
 	connect(ksvgd->window, TQ_SIGNAL(browseURL(const TQString &)), this, TQ_SLOT(browseURL(const TQString &)));
@@ -134,8 +134,8 @@ KSVGPlugin::KSVGPlugin(TQWidget *wparent, const char *, TQObject *parent, const
 	TQStringList items;
 	TQPtrList<KSVG::CanvasInfo> canvasList = KSVG::CanvasFactory::self()->canvasList();
 	TQPtrListIterator<KSVG::CanvasInfo> it(canvasList);
-	KSVG::CanvasInfo *canvasInfo = 0;
-	while((canvasInfo = it.current()) != 0)
+	KSVG::CanvasInfo *canvasInfo = nullptr;
+	while((canvasInfo = it.current()))
 	{
 		items << canvasInfo->name;
 		++it;
@@ -215,7 +215,7 @@ bool KSVGPlugin::openURL(const KURL &url)
 		bitBlt(ksvgd->window, 0, 0, ksvgd->backgroundPixmap, 0, 0, ksvgd->backgroundPixmap->width(), ksvgd->backgroundPixmap->height());
 		ksvgd->zoomFactor = 1;
 
-		emit started(0);
+		emit started(nullptr);
 		ksvgd->doc->open(url);
 		emit completed();
 	}
diff --git a/ksvg/plugin/ksvg_widget.cpp b/ksvg/plugin/ksvg_widget.cpp
index be8d0559..0e799c47 100644
--- a/ksvg/plugin/ksvg_widget.cpp
+++ b/ksvg/plugin/ksvg_widget.cpp
@@ -95,7 +95,7 @@ KSVG::SVGMouseEventImpl *KSVGWidget::newMouseEvent(KSVG::SVGEvent::EventId id, T
 												   (event->state() & TQt::ShiftButton), // shiftKeyArg
 												   (event->state() & TQt::MetaButton), // metaKeyArg
 												   button, // buttonArg
-												   0);
+												   nullptr);
 
 	mev->ref();
 
diff --git a/ksvg/test/external/printnodetest.cpp b/ksvg/test/external/printnodetest.cpp
index 355e4f0e..cfa54704 100644
--- a/ksvg/test/external/printnodetest.cpp
+++ b/ksvg/test/external/printnodetest.cpp
@@ -15,7 +15,7 @@ using namespace KSVG;
 
 static TDECmdLineOptions options[] =
 {
-	{ "+URL",   I18N_NOOP("SVG file to open"), 0 },
+	{ "+URL",   I18N_NOOP("SVG file to open"), nullptr },
 	TDECmdLineLastOption
 };
 
diff --git a/ksvg/test/external/svgdisplay.cpp b/ksvg/test/external/svgdisplay.cpp
index de1172dc..f982b49e 100644
--- a/ksvg/test/external/svgdisplay.cpp
+++ b/ksvg/test/external/svgdisplay.cpp
@@ -6,7 +6,7 @@
 
 static TDECmdLineOptions options[] =
 {
-	{ "+URL",   I18N_NOOP("SVG file to open"), 0 },
+	{ "+URL",   I18N_NOOP("SVG file to open"), nullptr },
 	TDECmdLineLastOption
 };
 
-- 
cgit v1.2.3

