| 1498 | } |
| 1499 | |
| 1500 | void XMLDocument::SetError(const char* p, XMLError error, const char* str1, const char* str2) { |
| 1501 | _errorID = error; |
| 1502 | _errorStr1 = str1; |
| 1503 | _errorStr2 = str2; |
| 1504 | if (_charBuffer && p) { |
| 1505 | _errorLine = 1; |
| 1506 | for (char* c = _charBuffer; c != p; c++) { |
| 1507 | if (*c == '\n') { |
| 1508 | _errorLine++; |
| 1509 | } |
| 1510 | } |
| 1511 | } |
| 1512 | } |
| 1513 | |
| 1514 | void XMLDocument::PrintError() const { |
| 1515 | if (_errorID) { |
no outgoing calls
no test coverage detected