[Libreoffice-commits] core.git: sdext/source
Noel Grandin
noel at peralex.com
Fri Jun 19 01:18:16 PDT 2015
sdext/source/pdfimport/tree/style.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1497dd974575d0d5de7e5b3ca4b5a97948318b5c
Author: Noel Grandin <noel at peralex.com>
Date: Wed Jun 17 10:43:28 2015 +0200
tdf#42374, improve perf by fixing bug in pdfi::HashedStyle::hashCode()
which was rendering it largely useless for hashing purposes
Change-Id: Ie94457ea0a6e53fd9ceed9461656e2d3b0840d58
diff --git a/sdext/source/pdfimport/tree/style.hxx b/sdext/source/pdfimport/tree/style.hxx
index d29cf8e..859f998 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]);
More information about the Libreoffice-commits
mailing list