diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-17 10:43:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-19 10:07:21 +0200 |
commit | 1497dd974575d0d5de7e5b3ca4b5a97948318b5c (patch) | |
tree | 6b47d29b57d4dc4ab7073dac7f227d94c9a90820 /sdext | |
parent | e0f3e7c007e9eeced888b491ec2698acba4bc588 (diff) |
tdf#42374, improve perf by fixing bug in pdfi::HashedStyle::hashCode()
which was rendering it largely useless for hashing purposes
Change-Id: Ie94457ea0a6e53fd9ceed9461656e2d3b0840d58
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/tree/style.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/tree/style.hxx b/sdext/source/pdfimport/tree/style.hxx index d29cf8e5412a..859f99879c37 100644 --- a/sdext/source/pdfimport/tree/style.hxx +++ b/sdext/source/pdfimport/tree/style.hxx @@ -84,7 +84,7 @@ namespace pdfi nRet ^= size_t(it->first.hashCode()); nRet ^= size_t(it->second.hashCode()); } - nRet = size_t(Contents.hashCode()); + nRet ^= size_t(Contents.hashCode()); nRet ^= size_t(ContainedElement); for( size_t n = 0; n < SubStyles.size(); ++n ) nRet ^= size_t(SubStyles[n]); |