summaryrefslogtreecommitdiff
path: root/store/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-20 10:26:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-20 12:31:32 +0100
commit4f4486c61d3e437059a2ac77aae012489f5c7e25 (patch)
tree408c9a71e3a2d2c4a921ce3a376546ccadae4437 /store/source
parentfda2ee3d87600ce7ecbec5528ea80b8e9758f584 (diff)
look for =() in loplugin:unnecessaryparen
Change-Id: I4f9b71ff7767e90987bb40358fc46ed5d1d571d0 Reviewed-on: https://gerrit.libreoffice.org/44944 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store/source')
-rw-r--r--store/source/storcach.cxx2
-rw-r--r--store/source/stordata.hxx8
-rw-r--r--store/source/stortree.cxx2
3 files changed, 6 insertions, 6 deletions
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