From e70460f59056b0a4957b534ab26b5c64eb94926c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Jul 2019 09:09:06 +0200 Subject: revert bits of "loplugin:sequentialassign" from commit 0d36b32755ac662299e6a8165e9fa57311b74a2f Author: Noel Grandin Date: Sun Jul 28 12:03:35 2019 +0200 loplugin:sequentialassign which were false positives and not meant to be committed Change-Id: I6f2f185bd3564c9329f5a0c78c9020f3ddb52d34 Reviewed-on: https://gerrit.libreoffice.org/76518 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/xmloff/nmspmap.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/xmloff/nmspmap.hxx') diff --git a/include/xmloff/nmspmap.hxx b/include/xmloff/nmspmap.hxx index e6875b1c8a39..234b5e4dda2a 100644 --- a/include/xmloff/nmspmap.hxx +++ b/include/xmloff/nmspmap.hxx @@ -55,7 +55,10 @@ struct QNamePairHash { size_t operator()( const QNamePair &r1 ) const { - return r1.first * 37 + r1.second.hashCode(); + size_t hash = 17; + hash = hash * 37 + r1.first; + hash = hash * 37 + r1.second.hashCode(); + return hash; } }; -- cgit