summaryrefslogtreecommitdiff
path: root/include/helpcompiler
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-15 15:44:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-16 08:17:34 +0200
commitce3441c2d5b6267c437b7af362fc8d29e38c1dd4 (patch)
tree75a704ec8625919f06c6106a1a321db989a4874e /include/helpcompiler
parent1b9f6808531207d0280bc80374ef75551e3fb732 (diff)
convert HelpProcessingErrorClass to scoped enum
and drop unused HELPPROCESSING_INTERNAL_ERROR enumerator Change-Id: I0f2cf063a3f1472e1d52bab5039b1c3158d4865e
Diffstat (limited to 'include/helpcompiler')
-rw-r--r--include/helpcompiler/compilehelp.hxx15
1 files changed, 7 insertions, 8 deletions
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 <rtl/ustring.hxx>
-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 )
{}