Kaydet (Commit) 018bacf4 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in shell/

Change-Id: I3a3f7144483cebaad6d64588ff0570f29ab24e27
üst 1aa29c82
......@@ -30,22 +30,10 @@ class xml_parser_exception : public std::runtime_error
public:
xml_parser_exception(
const std::string& error_msg,
int error_code,
int line_number,
int column_number,
long byte_index) :
std::runtime_error(error_msg),
error_code_(error_code),
line_number_(line_number),
column_number_(column_number),
byte_index_(byte_index)
const std::string& error_msg) :
std::runtime_error(error_msg)
{}
int error_code_;
int line_number_;
int column_number_;
long byte_index_;
};
......
......@@ -178,11 +178,7 @@ void xml_parser::parse(const char* XmlData, size_t Length, bool IsFinal)
XML_Parse(xml_parser_, XmlData, static_cast<int>(Length), IsFinal))
{
throw xml_parser_exception(
XML_ErrorString(XML_GetErrorCode(xml_parser_)),
(int)XML_GetErrorCode(xml_parser_),
XML_GetCurrentLineNumber(xml_parser_),
XML_GetCurrentColumnNumber(xml_parser_),
XML_GetCurrentByteIndex(xml_parser_));
XML_ErrorString(XML_GetErrorCode(xml_parser_)));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment