summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-25 11:30:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-25 20:14:03 +0200
commitea63b3d25a7c83773721f8ba6bf6d00c059d44fe (patch)
tree5b6ba1cf938f436489c391dda6ae3308d47c5c1c /include/svl
parent3ec8822b62d647379999b4c09f3e72b9474b61a3 (diff)
use more TypedWhichId
Change-Id: I6c54c1276b36cbc71417486ffcee2ef9ef0cff7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152270 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/typedwhich.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/svl/typedwhich.hxx b/include/svl/typedwhich.hxx
index cb9efabd59fc..8cfd4f01a314 100644
--- a/include/svl/typedwhich.hxx
+++ b/include/svl/typedwhich.hxx
@@ -40,6 +40,14 @@ private:
sal_uInt16 mnWhich;
};
+template <class T> constexpr bool operator==(TypedWhichId<T> const& lhs, TypedWhichId<T> rhs)
+{
+ return lhs == rhs;
+}
+template <class T> constexpr bool operator!=(TypedWhichId<T> const& lhs, TypedWhichId<T> rhs)
+{
+ return lhs != rhs;
+}
template <class T> constexpr bool operator==(sal_uInt16 lhs, TypedWhichId<T> const& rhs)
{
return lhs == sal_uInt16(rhs);