[Libreoffice-commits] core.git: connectivity/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Mar 13 14:59:26 UTC 2019
connectivity/source/drivers/writer/WTable.cxx | 2 +-
connectivity/source/drivers/writer/WTables.cxx | 9 ++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
New commits:
commit d94ecd7dd0c6db19305d7999852eeb8e869f9a46
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Mar 13 14:27:59 2019 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Wed Mar 13 15:59:02 2019 +0100
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 at collabora.com>
Tested-by: Jenkins
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;
More information about the Libreoffice-commits
mailing list