From 4f4486c61d3e437059a2ac77aae012489f5c7e25 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Nov 2017 10:26:01 +0200 Subject: look for =() in loplugin:unnecessaryparen Change-Id: I4f9b71ff7767e90987bb40358fc46ed5d1d571d0 Reviewed-on: https://gerrit.libreoffice.org/44944 Tested-by: Jenkins Reviewed-by: Noel Grandin --- store/source/storcach.cxx | 2 +- store/source/stordata.hxx | 8 ++++---- store/source/stortree.cxx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'store') diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx index 11b401a6a8d2..2f74a872e9d0 100644 --- a/store/source/storcach.cxx +++ b/store/source/storcach.cxx @@ -379,7 +379,7 @@ storeError PageCache::removePageAt (sal_uInt32 nOffset) if ((*ppEntry)->m_nOffset == nOffset) { // Existing entry. - Entry * entry = (*ppEntry); + Entry * entry = *ppEntry; // Dequeue and destroy entry. (*ppEntry) = entry->m_pNext; diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx index 33e968ec60d1..c992038bb3ac 100644 --- a/store/source/stordata.hxx +++ b/store/source/stordata.hxx @@ -417,7 +417,7 @@ struct OStoreDirectoryDataBlock /** direct. */ - static const sal_uInt16 directCount = ((sal_uInt16)(STORE_LIMIT_DATAPAGE_DIRECT)); + static const sal_uInt16 directCount = (sal_uInt16)(STORE_LIMIT_DATAPAGE_DIRECT); sal_uInt32 directLink (sal_uInt16 nIndex) const { @@ -434,7 +434,7 @@ struct OStoreDirectoryDataBlock /** single. */ - static const sal_uInt16 singleCount = ((sal_uInt16)(STORE_LIMIT_DATAPAGE_SINGLE)); + static const sal_uInt16 singleCount = (sal_uInt16)(STORE_LIMIT_DATAPAGE_SINGLE); sal_uInt32 singleLink (sal_uInt16 nIndex) const { @@ -451,7 +451,7 @@ struct OStoreDirectoryDataBlock /** double. */ - static const sal_uInt16 doubleCount = ((sal_uInt16)(STORE_LIMIT_DATAPAGE_DOUBLE)); + static const sal_uInt16 doubleCount = (sal_uInt16)(STORE_LIMIT_DATAPAGE_DOUBLE); sal_uInt32 doubleLink (sal_uInt16 nIndex) const { @@ -468,7 +468,7 @@ struct OStoreDirectoryDataBlock /** triple. */ - static const sal_uInt16 tripleCount = ((sal_uInt16)(STORE_LIMIT_DATAPAGE_TRIPLE)); + static const sal_uInt16 tripleCount = (sal_uInt16)(STORE_LIMIT_DATAPAGE_TRIPLE); sal_uInt32 tripleLink (sal_uInt16 nIndex) const { diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx index a3d679dbdd4a..c4afa028c598 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