[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kdom
From: Rob Buis <buis () kde ! org>
Date: 2006-01-21 12:25:30
Message-ID: 1137846330.815414.14272.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 500795 by buis:
Fix a crash with metadata-sample-BE-01.svg.
M +0 -1 backends/libxml/LibXMLParser.cpp
M +3 -0 core/GenericDOMErrorImpl.cpp
M +1 -1 core/GenericDOMErrorImpl.h
--- trunk/kdenonbeta/kdom/backends/libxml/LibXMLParser.cpp #500794:500795
@@ -331,7 +331,6 @@
else
err->setSeverity(SEVERITY_ERROR);
- err->setLocation(new DOMLocatorImpl());
err->location()->setLineNumber(ctxt->input->line);
err->location()->setColumnNumber(ctxt->input->col);
err->location()->setByteOffset(ctxt->input->consumed);
--- trunk/kdenonbeta/kdom/core/GenericDOMErrorImpl.cpp #500794:500795
@@ -107,6 +107,9 @@
DOMLocatorImpl *GenericDOMErrorImpl::location() const
{
+ if(!m_location)
+ m_location = new DOMLocatorImpl();
+
return m_location;
}
--- trunk/kdenonbeta/kdom/core/GenericDOMErrorImpl.h #500794:500795
@@ -65,7 +65,7 @@
DOMStringImpl *m_type;
DOMObjectImpl *m_relatedException;
DOMObjectImpl *m_relatedData;
- DOMLocatorImpl *m_location;
+ mutable DOMLocatorImpl *m_location;
};
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic