winaccessibility/source/UAccCOM/AccTable.cxx | 6 +++--- winaccessibility/source/UAccCOM/MAccessible.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit c88cd3f0a56a3196e6c1f4115bdc976a125ea871 Author: Stephan Bergmann <[email protected]> Date: Mon Jul 17 17:28:35 2017 +0200 loplugin:unnecessaryparen: winaccessibility (clang-cl) Change-Id: I9d83d16adbccd1dc29ea23dfa012a349c74150a3 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; } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
