summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 14:49:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 09:57:24 +0200
commit4250b25c6ae361359300ab6ccde27230f8e01039 (patch)
tree916a8420282928a92ede0760d696997550ae0840 /store
parent2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff)
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store')
-rw-r--r--store/source/storcach.hxx2
-rw-r--r--store/source/stortree.cxx2
2 files changed, 2 insertions, 2 deletions
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<int>((((a) + ((a) >> (s)) + ((a) >> ((s) << 1))) >> (q)) & (m));
+ return static_cast<int>(((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