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

Stephan Bergmann sbergman at redhat.com
Mon Nov 21 21:14:53 UTC 2016


 connectivity/source/drivers/macab/MacabCatalog.cxx |    3 +--
 connectivity/source/drivers/macab/MacabCatalog.hxx |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 8442bda2ca252a77b091fdf7140f972220b1895e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Nov 21 22:14:25 2016 +0100

    loplugin:datamembershadow
    
    shadowed OCatalog::m_xMetaData can be used here directly
    
    Change-Id: I1041272b98139fda2413442e4621507655ab67ca

diff --git a/connectivity/source/drivers/macab/MacabCatalog.cxx b/connectivity/source/drivers/macab/MacabCatalog.cxx
index a6c2095..8af9735 100644
--- a/connectivity/source/drivers/macab/MacabCatalog.cxx
+++ b/connectivity/source/drivers/macab/MacabCatalog.cxx
@@ -34,8 +34,7 @@ using namespace ::cppu;
 
 MacabCatalog::MacabCatalog(MacabConnection* _pCon)
         : connectivity::sdbcx::OCatalog(_pCon),
-          m_pConnection(_pCon),
-          m_xMetaData(m_pConnection->getMetaData())
+          m_pConnection(_pCon)
 {
 }
 
diff --git a/connectivity/source/drivers/macab/MacabCatalog.hxx b/connectivity/source/drivers/macab/MacabCatalog.hxx
index 36753c0..d893d3d 100644
--- a/connectivity/source/drivers/macab/MacabCatalog.hxx
+++ b/connectivity/source/drivers/macab/MacabCatalog.hxx
@@ -31,7 +31,6 @@ namespace connectivity
         class MacabCatalog : public connectivity::sdbcx::OCatalog
         {
             MacabConnection* m_pConnection;     // used to get the metadata
-            css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData; // just to make things easier
 
         public:
             explicit MacabCatalog(MacabConnection* _pCon);


More information about the Libreoffice-commits mailing list