diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 13:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-27 10:44:25 +0100 |
commit | 2e5508a17660401e1b4b489dbc9f70b978745b75 (patch) | |
tree | 881afcf9d8b9f0a653df0c94a8a2deefdf85670e /connectivity | |
parent | 470682b3abf0622f5e9663d62d8641f63ceb6f30 (diff) |
loplugin:unnecessaryparen check for (f1()).f2
Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3
Reviewed-on: https://gerrit.libreoffice.org/45218
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
7 files changed, 9 insertions, 9 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 80bcafe266c9..9e04619c923a 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -162,7 +162,7 @@ namespace connectivity initFields(); if ( nCol < nFields ) - return (pFields[nCol]->pField)->value_type; + return pFields[nCol]->pField->value_type; return G_TYPE_STRING; } diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx index ead7a912252d..3de5465b29a5 100644 --- a/connectivity/source/drivers/file/FPreparedStatement.cxx +++ b/connectivity/source/drivers/file/FPreparedStatement.cxx @@ -396,10 +396,10 @@ void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex) ::connectivity::checkDisposed(OStatement_BASE::rBHelper.bDisposed); if ( m_aAssignValues.is() && (parameterIndex < 1 || parameterIndex >= static_cast<sal_Int32>(m_aParameterIndexes.size())) ) throwInvalidIndexException(*this); - else if ( static_cast<sal_Int32>((m_aParameterRow->get()).size()) <= parameterIndex ) + else if ( static_cast<sal_Int32>(m_aParameterRow->get().size()) <= parameterIndex ) { sal_Int32 i = m_aParameterRow->get().size(); - (m_aParameterRow->get()).resize(parameterIndex+1); + m_aParameterRow->get().resize(parameterIndex+1); for ( ; i <= parameterIndex; ++i) { if ( !(m_aParameterRow->get())[i].is() ) diff --git a/connectivity/source/drivers/file/FResultSetMetaData.cxx b/connectivity/source/drivers/file/FResultSetMetaData.cxx index 32f45cd9b747..503f76a84e9d 100644 --- a/connectivity/source/drivers/file/FResultSetMetaData.cxx +++ b/connectivity/source/drivers/file/FResultSetMetaData.cxx @@ -70,7 +70,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) { - return (m_xColumns->get()).size(); + return m_xColumns->get().size(); } diff --git a/connectivity/source/drivers/mork/MPreparedStatement.cxx b/connectivity/source/drivers/mork/MPreparedStatement.cxx index f607077f9605..fdd374c63ff2 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.cxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.cxx @@ -345,8 +345,8 @@ void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex) m_aParameterRow->get().push_back(sal_Int32(0)); } - if ((sal_Int32)(m_aParameterRow->get()).size() <= parameterIndex) - (m_aParameterRow->get()).resize(parameterIndex+1); + if ((sal_Int32)m_aParameterRow->get().size() <= parameterIndex) + m_aParameterRow->get().resize(parameterIndex+1); } void OPreparedStatement::setParameter(sal_Int32 parameterIndex, const diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx index 61ff7dd8e15f..1312926f6d1d 100644 --- a/connectivity/source/drivers/mork/MResultSet.cxx +++ b/connectivity/source/drivers/mork/MResultSet.cxx @@ -1048,7 +1048,7 @@ void SAL_CALL OResultSet::executeQuery() if (rTabs.empty() || !rTabs.begin()->second.is()) m_pStatement->getOwnConnection()->throwSQLException( STR_QUERY_TOO_COMPLEX, *this ); - m_xTable = static_cast< OTable* > ((rTabs.begin()->second).get()); + m_xTable = static_cast< OTable* > (rTabs.begin()->second.get()); } m_nRowPos = 0; diff --git a/connectivity/source/drivers/mork/MResultSetMetaData.cxx b/connectivity/source/drivers/mork/MResultSetMetaData.cxx index 59ed049d26b7..2d362eefc291 100644 --- a/connectivity/source/drivers/mork/MResultSetMetaData.cxx +++ b/connectivity/source/drivers/mork/MResultSetMetaData.cxx @@ -61,7 +61,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 /*column*/ ) sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) { - return static_cast<sal_Int32>((m_xColumns->get()).size()); + return static_cast<sal_Int32>(m_xColumns->get().size()); } diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index 5e92b07aa697..d589da130b6a 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -434,7 +434,7 @@ bool executePostgresCommand( const OString & cmd, struct CommandData *data ) ExecStatusType state = PQresultStatus( result ); *(data->pLastOidInserted) = 0; - (data->pLastTableInserted)->clear(); + data->pLastTableInserted->clear(); *(data->pLastQuery) = cmd; bool ret = false; |