bool StateActions::warning(const ParserStatus & parser, const QString & argument) { if (! parser.errorHandler()) return true; QXmlParseException exception(argument, parser.m_locator->columnNumber(), parser.m_locator->lineNumber()); return parser.errorHandler()->warning(exception); }
bool StateActions::fatalError(const ParserStatus & parser, const QString & argument) { kError(24001) << argument << endl; if (! parser.errorHandler()) return false; QXmlParseException exception(argument, parser.m_locator->columnNumber(), parser.m_locator->lineNumber()); return parser.errorHandler()->fatalError(exception); }