loplugin:unusedfields in shell/

Change-Id: I3a3f7144483cebaad6d64588ff0570f29ab24e27
This commit is contained in:
Noel Grandin 2015-11-23 11:20:48 +02:00
parent 1aa29c8291
commit 018bacf44a
2 changed files with 3 additions and 19 deletions

View File

@ -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_;
};

View File

@ -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_)));
}
}