Kaydet (Commit) d94ecd7d authored tarafından Miklos Vajna's avatar Miklos Vajna

connectivity Writer driver: use auto when initializing with new to avoid ...

... duplicating the type name

Change-Id: I12b2302c4316b3ec1f22df366100c3b2a4d87454
Reviewed-on: https://gerrit.libreoffice.org/69173Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
üst e9ce7aca
......@@ -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());
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment