summaryrefslogtreecommitdiffstats
path: root/connectivity/source/commontools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 13:28:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 12:04:36 +0100
commit5c7b954935369cbbd22a6f43be63ac7c0ddbbfdc (patch)
treeac1ee3ab5e080ab65ceef2630d247d9fbe288fbb /connectivity/source/commontools
parenttdf#108523 Removed @author annotations. (diff)
downloadcore-5c7b954935369cbbd22a6f43be63ac7c0ddbbfdc.tar.gz
core-5c7b954935369cbbd22a6f43be63ac7c0ddbbfdc.zip
loplugin:useuniqueptr in OTable
use rtl::Reference here since these are reference counted data structures, and we hand out references to me via our API Change-Id: I8f69dde2db08519cb3d9de20b4ad54462e3ecc98 Reviewed-on: https://gerrit.libreoffice.org/49180 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/commontools')
-rw-r--r--connectivity/source/commontools/TTableHelper.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/source/commontools/TTableHelper.cxx b/connectivity/source/commontools/TTableHelper.cxx
index b94ab42d4617..7bb03a90da3c 100644
--- a/connectivity/source/commontools/TTableHelper.cxx
+++ b/connectivity/source/commontools/TTableHelper.cxx
@@ -299,10 +299,10 @@ void OTableHelper::refreshColumns()
);
}
- if(m_pColumns)
- m_pColumns->reFill(aVector);
+ if(m_xColumns)
+ m_xColumns->reFill(aVector);
else
- m_pColumns = createColumns(aVector);
+ m_xColumns = createColumns(aVector);
}
const ColumnDesc* OTableHelper::getColumnDescription(const OUString& _sName) const
@@ -424,10 +424,10 @@ void OTableHelper::refreshKeys()
{
refreshPrimaryKeys(aNames);
refreshForeignKeys(aNames);
- m_pKeys = createKeys(aNames);
+ m_xKeys = createKeys(aNames);
} // if(!isNew())
- else if (!m_pKeys )
- m_pKeys = createKeys(aNames);
+ else if (!m_xKeys )
+ m_xKeys = createKeys(aNames);
/*if(m_pKeys)
m_pKeys->reFill(aVector);
else*/
@@ -469,10 +469,10 @@ void OTableHelper::refreshIndexes()
}
}
- if(m_pIndexes)
- m_pIndexes->reFill(aVector);
+ if(m_xIndexes)
+ m_xIndexes->reFill(aVector);
else
- m_pIndexes = createIndexes(aVector);
+ m_xIndexes = createIndexes(aVector);
}
OUString OTableHelper::getRenameStart() const
@@ -549,7 +549,7 @@ void SAL_CALL OTableHelper::alterColumnByIndex( sal_Int32 index, const Reference
);
Reference< XPropertySet > xOld(
- m_pColumns->getByIndex(index), css::uno::UNO_QUERY);
+ m_xColumns->getByIndex(index), css::uno::UNO_QUERY);
if(xOld.is())
alterColumnByName(getString(xOld->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))),descriptor);
}