summaryrefslogtreecommitdiff
path: root/include/xmlreader/span.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-10-06 12:51:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-06 18:51:37 +0200
commit4b28b77eddfe48e709180f1ab81ac0d996796471 (patch)
treecea69cf628cd91d55e42afaf712b5bae4c0755a2 /include/xmlreader/span.hxx
parent0a6b9df8c8fc8e97ac627081485613e336051208 (diff)
we can use Span for the cache key here
Change-Id: I77894e3c5e3d68cb2a12abcc0b09f2c042664ba0 Reviewed-on: https://gerrit.libreoffice.org/80315 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmlreader/span.hxx')
-rw-r--r--include/xmlreader/span.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/xmlreader/span.hxx b/include/xmlreader/span.hxx
index 038241ef1133..f56059b96274 100644
--- a/include/xmlreader/span.hxx
+++ b/include/xmlreader/span.hxx
@@ -77,6 +77,19 @@ struct SAL_WARN_UNUSED OOO_DLLPUBLIC_XMLREADER Span {
}
rtl::OUString convertFromUtf8() const;
+
+ std::size_t hashCode() const;
+};
+
+}
+
+namespace std {
+
+template<>
+struct hash<::xmlreader::Span>
+{
+ std::size_t operator()(::xmlreader::Span const & s) const
+ { return s.hashCode(); }
};
}