summaryrefslogtreecommitdiff
path: root/include/xmlreader
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 10:38:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-08 08:30:46 +0200
commit266303e867fae0eb10fe9aa52cf683e3db88376a (patch)
treed2facfb7968b8aa2b69d2ac33f2ed1b0df9d185f /include/xmlreader
parentc5e9bc71c4803ccf7c1eaa23aed03bdaee31f001 (diff)
cleanups in xmlreader
(*) fix order of headers (*) include the right headers in span.hxx (*) use std::memcmp instead of memcmp (*) clear entries from cache when the namespaces array is resized Change-Id: I04319bbaa84369e5470799578fadcda66a591c9f Reviewed-on: https://gerrit.libreoffice.org/80347 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmlreader')
-rw-r--r--include/xmlreader/span.hxx4
-rw-r--r--include/xmlreader/xmlreader.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/xmlreader/span.hxx b/include/xmlreader/span.hxx
index f56059b96274..a3da663e5a71 100644
--- a/include/xmlreader/span.hxx
+++ b/include/xmlreader/span.hxx
@@ -24,9 +24,9 @@
#include <cstddef>
#include <cstring>
+#include <functional>
#include <sal/types.h>
-#include <rtl/string.h>
#include <xmlreader/detail/xmlreaderdllapi.hxx>
namespace rtl { class OUString; }
@@ -53,7 +53,7 @@ struct SAL_WARN_UNUSED OOO_DLLPUBLIC_XMLREADER Span {
bool operator==(Span const & text) const {
return length == text.length
- && memcmp(begin, text.begin, text.length) == 0;
+ && std::memcmp(begin, text.begin, text.length) == 0;
}
bool operator!=(Span const & text) const {
diff --git a/include/xmlreader/xmlreader.hxx b/include/xmlreader/xmlreader.hxx
index a553baeb6c3a..99e889ee0d59 100644
--- a/include/xmlreader/xmlreader.hxx
+++ b/include/xmlreader/xmlreader.hxx
@@ -22,8 +22,8 @@
#include <sal/config.h>
-#include <unordered_map>
#include <stack>
+#include <unordered_map>
#include <vector>
#include <osl/file.h>