[Libreoffice-commits] core.git: connectivity/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 15 08:30:27 UTC 2018


 connectivity/source/drivers/mysql_jdbc/YTables.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d18e27c80d3f1d7c641468b62aa6c26f4100142d
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Oct 15 10:28:27 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Oct 15 10:29:55 2018 +0200

    loplugin:simplifyconstruct
    
    Change-Id: Ia74a2493ad780314a832b384ca6326c7fd420631

diff --git a/connectivity/source/drivers/mysql_jdbc/YTables.cxx b/connectivity/source/drivers/mysql_jdbc/YTables.cxx
index 9caabc3d2e70..e65f510c700e 100644
--- a/connectivity/source/drivers/mysql_jdbc/YTables.cxx
+++ b/connectivity/source/drivers/mysql_jdbc/YTables.cxx
@@ -61,7 +61,7 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
         aCatalog <<= sCatalog;
     Reference<XResultSet> xResult = m_xMetaData->getTables(aCatalog, sSchema, sTable, sTableTypes);
 
-    sdbcx::ObjectType xRet = nullptr;
+    sdbcx::ObjectType xRet;
     if (xResult.is())
     {
         Reference<XRow> xRow(xResult, UNO_QUERY);


More information about the Libreoffice-commits mailing list