diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-03-13 14:27:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-03-13 15:59:02 +0100 |
commit | d94ecd7dd0c6db19305d7999852eeb8e869f9a46 (patch) | |
tree | a6e601fdcbb557bed583e662b17d3923d72f8283 /connectivity | |
parent | e9ce7acaf5cc87a4fb40f12ea0aac8cb9df3562f (diff) |
connectivity Writer driver: use auto when initializing with new to avoid ...
... duplicating the type name
Change-Id: I12b2302c4316b3ec1f22df366100c3b2a4d87454
Reviewed-on: https://gerrit.libreoffice.org/69173
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/writer/WTable.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/writer/WTables.cxx | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/connectivity/source/drivers/writer/WTable.cxx b/connectivity/source/drivers/writer/WTable.cxx index 5e5320540ee4..d21943653f12 100644 --- a/connectivity/source/drivers/writer/WTable.cxx +++ b/connectivity/source/drivers/writer/WTable.cxx @@ -170,7 +170,7 @@ void OWriterTable::fillColumns() aCase); } - sdbcx::OColumn* pColumn = new sdbcx::OColumn( + auto pColumn = new sdbcx::OColumn( aAlias, aTypeName, OUString(), OUString(), sdbc::ColumnValue::NULLABLE, nPrecision, nDecimals, eType, false, false, bCurrency, bStoresMixedCaseQuotedIdentifiers, m_CatalogName, getSchema(), getName()); diff --git a/connectivity/source/drivers/writer/WTables.cxx b/connectivity/source/drivers/writer/WTables.cxx index 227abd2f8145..6e3e4dcab3ce 100644 --- a/connectivity/source/drivers/writer/WTables.cxx +++ b/connectivity/source/drivers/writer/WTables.cxx @@ -33,11 +33,10 @@ namespace writer { sdbcx::ObjectType OWriterTables::createObject(const OUString& rName) { - OWriterTable* pTable - = new OWriterTable(this, - static_cast<OWriterConnection*>( - static_cast<file::OFileCatalog&>(m_rParent).getConnection()), - rName, "TABLE"); + auto pTable = new OWriterTable(this, + static_cast<OWriterConnection*>( + static_cast<file::OFileCatalog&>(m_rParent).getConnection()), + rName, "TABLE"); sdbcx::ObjectType xRet = pTable; pTable->construct(); return xRet; |