Tag: cws_src680_kaddrbook
User: ebischoff
Date: 05/09/02 01:04:26

Modified:
 /dba/connectivity/source/drivers/kab/
  KCatalog.cxx, KCatalog.hxx

Log:
 Simplifying

File Changes:

Directory: /dba/connectivity/source/drivers/kab/
================================================

File [changed]: KCatalog.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KCatalog.cxx?r1=1.1.2.1&r2=1.1.2.2
Delta lines:  +5 -5
-------------------
--- KCatalog.cxx        29 Aug 2005 08:43:46 -0000      1.1.2.1
+++ KCatalog.cxx        2 Sep 2005 08:04:21 -0000       1.1.2.2
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KCatalog.cxx,v $
  *
- *  $Revision: 1.1.2.1 $
+ *  $Revision: 1.1.2.2 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/08/29 08:43:46 $
+ *  last change: $Author: ebischoff $ $Date: 2005/09/02 08:04:21 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -99,7 +99,7 @@
        {
                Reference< XRow > xRow(xResult,UNO_QUERY);
                ::rtl::OUString aName;
-               const ::rtl::OUString& sDot = KabCatalog::getDot();
+               // const ::rtl::OUString& sDot = KabCatalog::getDot();
                
                while (xResult->next())
                {
@@ -155,5 +155,5 @@
                // allowed
        }
 
-       return const_cast<KabCatalog*>(this)->m_pTables;
+       return m_pTables;
 }

File [changed]: KCatalog.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KCatalog.hxx?r1=1.1.2.1&r2=1.1.2.2
Delta lines:  +17 -16
---------------------
--- KCatalog.hxx        29 Aug 2005 08:43:46 -0000      1.1.2.1
+++ KCatalog.hxx        2 Sep 2005 08:04:22 -0000       1.1.2.2
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KCatalog.hxx,v $
  *
- *  $Revision: 1.1.2.1 $
+ *  $Revision: 1.1.2.2 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/08/29 08:43:46 $
+ *  last change: $Author: ebischoff $ $Date: 2005/09/02 08:04:22 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -71,29 +71,30 @@
        namespace kab
        {
         class KabConnection;
+
                class KabCatalog : public connectivity::sdbcx::OCatalog
                {
                        KabConnection* m_pConnection;           // used to get 
the metadata
             ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; // just to make things 
easier
 
                public:
+                       KabCatalog(KabConnection* _pCon);
+
+                       inline KabConnection* getConnection() const { return 
m_pConnection; }
+
+                       static const ::rtl::OUString& getDot();
+
                        // implementation of the pure virtual methods
                        virtual void refreshTables();
-                       virtual void refreshViews()     ;
+                       virtual void refreshViews();
                        virtual void refreshGroups();
-                       virtual void refreshUsers()     ;
+                       virtual void refreshUsers();
+
+                       // XTablesSupplier
             virtual ::com::sun::star::uno::Reference< 
::com::sun::star::container::XNameAccess > SAL_CALL getTables(
                                        ) 
throw(::com::sun::star::uno::RuntimeException);
-
-               public:
-                       KabCatalog(KabConnection* _pCon);
-
-                       KabConnection*              getConnection()             
const { return m_pConnection; }
-                       sdbcx::OCollection*             getPrivateTables()      
const { return m_pTables;}
-                       sdbcx::OCollection*             getPrivateViews()       
const { return m_pViews; }
-
-                       static const ::rtl::OUString& getDot();
                };
        }
 }
+
 #endif // _CONNECTIVITY_KAB_CATALOG_HXX_




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to