From ce3441c2d5b6267c437b7af362fc8d29e38c1dd4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Feb 2017 15:44:07 +0200 Subject: convert HelpProcessingErrorClass to scoped enum and drop unused HELPPROCESSING_INTERNAL_ERROR enumerator Change-Id: I0f2cf063a3f1472e1d52bab5039b1c3158d4865e --- include/helpcompiler/compilehelp.hxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'include/helpcompiler') diff --git a/include/helpcompiler/compilehelp.hxx b/include/helpcompiler/compilehelp.hxx index c9643ac0c28a..04c573a2596e 100644 --- a/include/helpcompiler/compilehelp.hxx +++ b/include/helpcompiler/compilehelp.hxx @@ -31,23 +31,22 @@ #include -enum HelpProcessingErrorClass +enum class HelpProcessingErrorClass { - HELPPROCESSING_NO_ERROR, - HELPPROCESSING_GENERAL_ERROR, // Missing files, options etc. - HELPPROCESSING_INTERNAL_ERROR, // Unexpected problems - HELPPROCESSING_XMLPARSING_ERROR // Errors thrown by libxml + NONE, + General, // Missing files, options etc. + XmlParsing // Errors thrown by libxml }; struct HelpProcessingErrorInfo { - HelpProcessingErrorClass m_eErrorClass; + HelpProcessingErrorClass m_eErrorClass; OUString m_aErrorMsg; OUString m_aXMLParsingFile; - sal_Int32 m_nXMLParsingLine; + sal_Int32 m_nXMLParsingLine; HelpProcessingErrorInfo() - : m_eErrorClass( HELPPROCESSING_NO_ERROR ) + : m_eErrorClass( HelpProcessingErrorClass::NONE ) , m_nXMLParsingLine( -1 ) {} -- cgit