summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-17 17:28:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-17 17:28:35 +0200
commitc88cd3f0a56a3196e6c1f4115bdc976a125ea871 (patch)
treee4c2109a8a4892ced529de5b6eeeccb9d2c65768 /winaccessibility
parentd4bda10ceef4502ce4717368c6a39ecd709cff7f (diff)
loplugin:unnecessaryparen: winaccessibility (clang-cl)
Change-Id: I9d83d16adbccd1dc29ea23dfa012a349c74150a3
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/AccTable.cxx6
-rw-r--r--winaccessibility/source/UAccCOM/MAccessible.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/winaccessibility/source/UAccCOM/AccTable.cxx b/winaccessibility/source/UAccCOM/AccTable.cxx
index 18c0f455ad5d..f39fab74431d 100644
--- a/winaccessibility/source/UAccCOM/AccTable.cxx
+++ b/winaccessibility/source/UAccCOM/AccTable.cxx
@@ -471,7 +471,7 @@ STDMETHODIMP CAccTable::get_selectedRows(long, long ** rows, long * nRows)
long count = pSelected.getLength() ;
*nRows = count;
- *rows = static_cast<long*>(CoTaskMemAlloc((count) * sizeof(long)));
+ *rows = static_cast<long*>(CoTaskMemAlloc(count * sizeof(long)));
// #CHECK Memory Allocation#
if(*rows == nullptr)
{
@@ -510,7 +510,7 @@ STDMETHODIMP CAccTable::get_selectedColumns(long, long ** columns, long * numCol
long count = pSelected.getLength() ;
*numColumns = count;
- *columns = static_cast<long*>(CoTaskMemAlloc((count) * sizeof(long)));
+ *columns = static_cast<long*>(CoTaskMemAlloc(count * sizeof(long)));
// #CHECK Memory Allocation#
if(*columns == nullptr)
{
@@ -997,7 +997,7 @@ STDMETHODIMP CAccTable::get_selectedChildren(long, long **children, long *nChild
*nChildren = childCount;
- *children = static_cast<long*>(CoTaskMemAlloc((childCount) * sizeof(long)));
+ *children = static_cast<long*>(CoTaskMemAlloc(childCount * sizeof(long)));
for( long i = 0; i< childCount; i++)
{
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index 9fb55b34bac1..f800508eff88 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -1787,7 +1787,7 @@ STDMETHODIMP CMAccessible::get_relations( long, IAccessibleRelation __RPC_FAR *_
reinterpret_cast<hyper>(&accRelation));
wrapper->Release();
}
- (relation)[i] = pRelation;
+ relation[i] = pRelation;
}
}