summaryrefslogtreecommitdiffstats
path: root/include/xmlreader
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-30 10:25:47 +0200
committerNoel Grandin <noel@peralex.com>2016-08-31 10:00:07 +0200
commit4300656d9f0015c6a894b76ddcf537b446d0b9ba (patch)
tree6c5870a2accc5aa804a3f6b40736bb8c344bc42d /include/xmlreader
parentGet rid of a pointless indirect function pointer variable (diff)
downloadcore-4300656d9f0015c6a894b76ddcf537b446d0b9ba.tar.gz
core-4300656d9f0015c6a894b76ddcf537b446d0b9ba.zip
convert XmlReader::State to scoped enum
Change-Id: I8020843ad238ac3487f7f2781693ca619db5e1b3
Diffstat (limited to 'include/xmlreader')
-rw-r--r--include/xmlreader/xmlreader.hxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/xmlreader/xmlreader.hxx b/include/xmlreader/xmlreader.hxx
index 88fec4a092b8..de05d5faf677 100644
--- a/include/xmlreader/xmlreader.hxx
+++ b/include/xmlreader/xmlreader.hxx
@@ -127,9 +127,7 @@ private:
typedef std::vector< AttributeData > Attributes;
- enum State {
- STATE_CONTENT, STATE_START_TAG, STATE_END_TAG, STATE_EMPTY_ELEMENT_TAG,
- STATE_DONE };
+ enum class State { Content, StartTag, EndTag, EmptyElementTag, Done };
SAL_DLLPRIVATE inline char read() { return pos_ == end_ ? '\0' : *pos_++; }