Merge pull request #502 from Dmitry-Me/reuseClearError

Reuse code for error clearing
This commit is contained in:
Lee Thomason
2016-11-25 22:06:11 -08:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -1741,6 +1741,10 @@ public:
void SetError( XMLError error, const char* str1, const char* str2 );
void ClearError() {
SetError(XML_SUCCESS, 0, 0);
}
/// Return true if there was an error parsing the document.
bool Error() const {
return _errorID != XML_SUCCESS;