removed overhead of clear error
This commit is contained in:
@@ -2427,6 +2427,13 @@ void XMLDocument::Print( XMLPrinter* streamer ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void XMLDocument::ClearError() {
|
||||||
|
_errorID = XML_SUCCESS;
|
||||||
|
_errorLineNum = 0;
|
||||||
|
_errorStr.Reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void XMLDocument::SetError( XMLError error, int lineNum, const char* format, ... )
|
void XMLDocument::SetError( XMLError error, int lineNum, const char* format, ... )
|
||||||
{
|
{
|
||||||
TIXMLASSERT( error >= 0 && error < XML_ERROR_COUNT );
|
TIXMLASSERT( error >= 0 && error < XML_ERROR_COUNT );
|
||||||
|
|||||||
@@ -1873,9 +1873,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
void DeleteNode( XMLNode* node );
|
void DeleteNode( XMLNode* node );
|
||||||
|
|
||||||
void ClearError() {
|
/// Clears the error flags.
|
||||||
SetError(XML_SUCCESS, 0, 0);
|
void ClearError();
|
||||||
}
|
|
||||||
|
|
||||||
/// Return true if there was an error parsing the document.
|
/// Return true if there was an error parsing the document.
|
||||||
bool Error() const {
|
bool Error() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user