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

Julien Nabet serval2412 at yahoo.fr
Sat May 31 15:24:56 PDT 2014


 connectivity/source/drivers/firebird/Tables.cxx |   16 ++--------------
 connectivity/source/drivers/firebird/Tables.hxx |    5 +----
 2 files changed, 3 insertions(+), 18 deletions(-)

New commits:
commit d7dd4bbf0a54cc780002052a370f835572035f51
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jun 1 00:20:14 2014 +0200

    Resolves: fdo#79493 Refresh Tables option fails with Firebird
    
    Comparing with hsqldb part, sdbcx::OCollection link wasn't present in Tables constructor
    Also include Catalog.hxx to be able to call "refreshTables" method
    
    Change-Id: I1d8f2b0b361f8fd90f3065c07b3224894a3700d6

diff --git a/connectivity/source/drivers/firebird/Tables.cxx b/connectivity/source/drivers/firebird/Tables.cxx
index 70e3272..eea2987 100644
--- a/connectivity/source/drivers/firebird/Tables.cxx
+++ b/connectivity/source/drivers/firebird/Tables.cxx
@@ -9,6 +9,7 @@
 
 #include "Table.hxx"
 #include "Tables.hxx"
+#include "Catalog.hxx"
 
 #include <connectivity/dbtools.hxx>
 
@@ -29,24 +30,11 @@ using namespace ::com::sun::star::sdbc;
 using namespace ::com::sun::star::uno;
 
 
-Tables::Tables(const uno::Reference< XDatabaseMetaData >& rMetaData,
-               OWeakObject& rParent,
-               Mutex& rMutex,
-               TStringVector& rNames) :
-    OCollection(rParent,
-                true,
-                rMutex,
-                rNames),
-    m_rMutex(rMutex),
-    m_xMetaData(rMetaData)
-{
-}
-
 //----- OCollection -----------------------------------------------------------
 void Tables::impl_refresh()
     throw(RuntimeException)
 {
-    // TODO: IMPLEMENT ME
+    static_cast<Catalog&>(m_rParent).refreshTables();
 }
 
 ObjectType Tables::createObject(const OUString& rName)
diff --git a/connectivity/source/drivers/firebird/Tables.hxx b/connectivity/source/drivers/firebird/Tables.hxx
index 3d5f696..df66e60 100644
--- a/connectivity/source/drivers/firebird/Tables.hxx
+++ b/connectivity/source/drivers/firebird/Tables.hxx
@@ -25,9 +25,6 @@ namespace connectivity
          */
         class Tables: public ::connectivity::sdbcx::OCollection
         {
-        private:
-            ::osl::Mutex& m_rMutex;
-
         protected:
             ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >
                 m_xMetaData;
@@ -47,7 +44,7 @@ namespace connectivity
             Tables(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& rMetaData,
                    ::cppu::OWeakObject& rParent,
                    ::osl::Mutex& rMutex,
-                   ::connectivity::TStringVector& rNames);
+                   ::connectivity::TStringVector& rNames) : sdbcx::OCollection(rParent, true, rMutex, rNames), m_xMetaData(rMetaData) {}
 
             // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
             // XAppend,  etc., but all are optional.


More information about the Libreoffice-commits mailing list