diff options
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/borderline.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/svtools/borderline.hxx b/include/svtools/borderline.hxx index 36780bddf422..90ecee6512f5 100644 --- a/include/svtools/borderline.hxx +++ b/include/svtools/borderline.hxx @@ -21,6 +21,7 @@ #include <svtools/svtdllapi.h> #include <o3tl/typed_flags_set.hxx> +#include <o3tl/hash_combine.hxx> #include <tools/long.hxx> /** @@ -73,6 +74,16 @@ public: bool IsEmpty( ) const { return (0 == m_nRate1) && (0 == m_nRate2); } bool IsDouble( ) const { return (0 != m_nRate1) && (0 != m_nRate2); } + std::size_t getHash() const + { + std::size_t seed = 0; + o3tl::hash_combine(seed, m_nFlags); + o3tl::hash_combine(seed, m_nRate1); + o3tl::hash_combine(seed, m_nRate2); + o3tl::hash_combine(seed, m_nRateGap); + return seed; + } + }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |