diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-01-11 08:35:48 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-01-11 14:27:51 +0100 |
commit | 74b3924a98dfeeec719f7bc27a2e0a2e1a597167 (patch) | |
tree | f2375ba227971ed7b080b3fa7259e6a741435282 /connectivity/source/drivers/writer/WDatabaseMetaData.cxx | |
parent | 4a0f40113d83742792d765eb1abcbb239cbbf2dd (diff) |
connectivity: various small cleanups in the Writer driver
Change-Id: I91735c3e92262fd37966c53f973d5eee1522cd61
Reviewed-on: https://gerrit.libreoffice.org/47741
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'connectivity/source/drivers/writer/WDatabaseMetaData.cxx')
-rw-r--r-- | connectivity/source/drivers/writer/WDatabaseMetaData.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/drivers/writer/WDatabaseMetaData.cxx b/connectivity/source/drivers/writer/WDatabaseMetaData.cxx index 5dcad41d3eb2..f811205666a2 100644 --- a/connectivity/source/drivers/writer/WDatabaseMetaData.cxx +++ b/connectivity/source/drivers/writer/WDatabaseMetaData.cxx @@ -32,9 +32,7 @@ OWriterDatabaseMetaData::OWriterDatabaseMetaData(file::OConnection* pConnection) { } -OWriterDatabaseMetaData::~OWriterDatabaseMetaData() -{ -} +OWriterDatabaseMetaData::~OWriterDatabaseMetaData() = default; OUString SAL_CALL OWriterDatabaseMetaData::getURL() { @@ -50,7 +48,7 @@ uno::Reference<sdbc::XResultSet> SAL_CALL OWriterDatabaseMetaData::getTables( { ::osl::MutexGuard aGuard(m_aMutex); - ODatabaseMetaDataResultSet* pResult = new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eTables); + auto pResult = new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eTables); uno::Reference<sdbc::XResultSet> xRef = pResult; // check if ORowSetValue type is given |