From 4250b25c6ae361359300ab6ccde27230f8e01039 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Jul 2017 14:49:15 +0200 Subject: teach unnecessaryparen loplugin about identifiers Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- store/source/storcach.hxx | 2 +- store/source/stortree.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'store/source') diff --git a/store/source/storcach.hxx b/store/source/storcach.hxx index 0a16fd813e31..65b79e1ac56d 100644 --- a/store/source/storcach.hxx +++ b/store/source/storcach.hxx @@ -55,7 +55,7 @@ class PageCache : static int hash_Impl(sal_uInt32 a, size_t s, size_t q, size_t m) { - return static_cast((((a) + ((a) >> (s)) + ((a) >> ((s) << 1))) >> (q)) & (m)); + return static_cast(((a + (a >> s) + (a >> (s << 1))) >> q) & m); } int hash_index_Impl (sal_uInt32 nOffset) { diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx index 1b5e2277d6d8..30264e0917b6 100644 --- a/store/source/stortree.cxx +++ b/store/source/stortree.cxx @@ -79,7 +79,7 @@ sal_uInt16 OStoreBTreeNodeData::find (const T& t) const l = m + 1; } - sal_uInt16 const k = ((sal_uInt16)(r)); + sal_uInt16 const k = ((sal_uInt16)r); if ((k < capacityCount()) && (t.m_aKey < m_pData[k].m_aKey)) return k - 1; else -- cgit