diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-23 11:20:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-23 13:30:54 +0200 |
commit | 018bacf44a49f83eae34e2fb2187ffcb83259a65 (patch) | |
tree | 0a055904ec9b585b629eb923b1e11ec9fe59f69a /shell | |
parent | 1aa29c829121d19548143a0e3b97b061c72afb3a (diff) |
loplugin:unusedfields in shell/
Change-Id: I3a3f7144483cebaad6d64588ff0570f29ab24e27
Diffstat (limited to 'shell')
-rw-r--r-- | shell/inc/internal/xml_parser.hxx | 16 | ||||
-rw-r--r-- | shell/source/all/xml_parser.cxx | 6 |
2 files changed, 3 insertions, 19 deletions
diff --git a/shell/inc/internal/xml_parser.hxx b/shell/inc/internal/xml_parser.hxx index 975f17afaddc..40c97ed72444 100644 --- a/shell/inc/internal/xml_parser.hxx +++ b/shell/inc/internal/xml_parser.hxx @@ -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_; }; diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx index 893cf0870f03..6d557213d639 100644 --- a/shell/source/all/xml_parser.cxx +++ b/shell/source/all/xml_parser.cxx @@ -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_))); } } |