summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
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 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSet.cxx10
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx10
-rw-r--r--dbaccess/source/filter/xml/dbloader2.cxx2
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx2
4 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index c31eafc5426f..db702ab5b268 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -693,7 +693,7 @@ void ORowSet::updateValue(sal_Int32 columnIndex,const ORowSetValue& x)
checkUpdateConditions(columnIndex);
checkUpdateIterator();
- ORowSetValueVector::Vector& rRow = ((*m_aCurrentRow)->get());
+ ORowSetValueVector::Vector& rRow = (*m_aCurrentRow)->get();
ORowSetNotifier aNotify(this,rRow);
m_pCache->updateValue(columnIndex,x,rRow,aNotify.getChangedColumns());
m_bModified = m_bModified || !aNotify.getChangedColumns().empty();
@@ -709,7 +709,7 @@ void SAL_CALL ORowSet::updateNull( sal_Int32 columnIndex )
checkUpdateConditions(columnIndex);
checkUpdateIterator();
- ORowSetValueVector::Vector& rRow = ((*m_aCurrentRow)->get());
+ ORowSetValueVector::Vector& rRow = (*m_aCurrentRow)->get();
ORowSetNotifier aNotify(this,rRow);
m_pCache->updateNull(columnIndex,rRow,aNotify.getChangedColumns());
m_bModified = m_bModified || !aNotify.getChangedColumns().empty();
@@ -797,7 +797,7 @@ void SAL_CALL ORowSet::updateCharacterStream( sal_Int32 columnIndex, const Refer
::osl::MutexGuard aGuard( *m_pMutex );
checkUpdateConditions(columnIndex);
checkUpdateIterator();
- ORowSetValueVector::Vector& rRow = ((*m_aCurrentRow)->get());
+ ORowSetValueVector::Vector& rRow = (*m_aCurrentRow)->get();
ORowSetNotifier aNotify(this,rRow);
m_pCache->updateCharacterStream(columnIndex,x,length,rRow,aNotify.getChangedColumns());
m_bModified = m_bModified || !aNotify.getChangedColumns().empty();
@@ -841,7 +841,7 @@ void SAL_CALL ORowSet::updateObject( sal_Int32 columnIndex, const Any& x )
if (!::dbtools::implUpdateObject(this, columnIndex, aNewValue))
{ // there is no other updateXXX call which can handle the value in x
- ORowSetValueVector::Vector& rRow = ((*m_aCurrentRow)->get());
+ ORowSetValueVector::Vector& rRow = (*m_aCurrentRow)->get();
ORowSetNotifier aNotify(this,rRow);
m_pCache->updateObject(columnIndex,aNewValue,rRow,aNotify.getChangedColumns());
m_bModified = m_bModified || !aNotify.getChangedColumns().empty();
@@ -855,7 +855,7 @@ void SAL_CALL ORowSet::updateNumericObject( sal_Int32 columnIndex, const Any& x,
::osl::MutexGuard aGuard( *m_pMutex );
checkUpdateConditions(columnIndex);
checkUpdateIterator();
- ORowSetValueVector::Vector& rRow = ((*m_aCurrentRow)->get());
+ ORowSetValueVector::Vector& rRow = (*m_aCurrentRow)->get();
ORowSetNotifier aNotify(this,rRow);
m_pCache->updateNumericObject(columnIndex,x,rRow,aNotify.getChangedColumns());
m_bModified = m_bModified || !aNotify.getChangedColumns().empty();
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index 76689574eb78..8dacb0efa514 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -557,7 +557,7 @@ void ORowSetCache::updateNull(sal_Int32 columnIndex,ORowSetValueVector::Vector&
{
checkUpdateConditions(columnIndex);
- ORowSetValueVector::Vector& rInsert = ((*m_aInsertRow)->get());
+ ORowSetValueVector::Vector& rInsert = (*m_aInsertRow)->get();
if ( !rInsert[columnIndex].isNull() )
{
rInsert[columnIndex].setBound(true);
@@ -577,7 +577,7 @@ void ORowSetCache::updateValue(sal_Int32 columnIndex,const ORowSetValue& x
{
checkUpdateConditions(columnIndex);
- ORowSetValueVector::Vector& rInsert = ((*m_aInsertRow)->get());
+ ORowSetValueVector::Vector& rInsert = (*m_aInsertRow)->get();
if ( rInsert[columnIndex] != x )
{
rInsert[columnIndex].setBound(true);
@@ -601,7 +601,7 @@ void ORowSetCache::updateCharacterStream( sal_Int32 columnIndex, const Reference
if(x.is())
x->readBytes(aSeq,length);
- ORowSetValueVector::Vector& rInsert = ((*m_aInsertRow)->get());
+ ORowSetValueVector::Vector& rInsert = (*m_aInsertRow)->get();
rInsert[columnIndex].setBound(true);
rInsert[columnIndex] = aSeq;
rInsert[columnIndex].setModified();
@@ -618,7 +618,7 @@ void ORowSetCache::updateObject( sal_Int32 columnIndex, const Any& x
{
checkUpdateConditions(columnIndex);
- ORowSetValueVector::Vector& rInsert = ((*m_aInsertRow)->get());
+ ORowSetValueVector::Vector& rInsert = (*m_aInsertRow)->get();
ORowSetValue aTemp;
aTemp.fill(x);
if ( rInsert[columnIndex] != aTemp )
@@ -640,7 +640,7 @@ void ORowSetCache::updateNumericObject( sal_Int32 columnIndex, const Any& x
{
checkUpdateConditions(columnIndex);
- ORowSetValueVector::Vector& rInsert = ((*m_aInsertRow)->get());
+ ORowSetValueVector::Vector& rInsert = (*m_aInsertRow)->get();
ORowSetValue aTemp;
aTemp.fill(x);
if ( rInsert[columnIndex] != aTemp )
diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx
index e3a484b989b0..e43e45c34919 100644
--- a/dbaccess/source/filter/xml/dbloader2.cxx
+++ b/dbaccess/source/filter/xml/dbloader2.cxx
@@ -464,7 +464,7 @@ void SAL_CALL DBContentLoader::load(const Reference< XFrame > & rFrame, const OU
// If it already *does* have an URL, then it was either passed in the arguments, or a previous incarnation
// of that model existed before (which can happen if a model is closed, but an associated DataSource is kept
// alive 'til loading the document again).
- bool bNeedLoad = ( xModel->getURL().isEmpty() );
+ bool bNeedLoad = xModel->getURL().isEmpty();
try
{
aMediaDesc.put( "FileName", _rURL );
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 60b233d851de..bae1e73070c5 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -751,7 +751,7 @@ bool SbaTableQueryBrowser::InitializeGridModel(const Reference< css::form::XForm
if ( aDefault.hasValue() )
aDefault <<= (comphelper::getString(aDefault).toInt32() == 0) ? (sal_Int16)TRISTATE_FALSE : (sal_Int16)TRISTATE_TRUE;
else
- aDefault <<= ((sal_Int16)TRISTATE_INDET);
+ aDefault <<= (sal_Int16)TRISTATE_INDET;
}
}