Tag: cws_src680_odbmacros2
User: fs      
Date: 2008-01-24 10:04:50+0000
Modified:
   dba/dbaccess/source/core/dataaccess/ModelImpl.hxx

Log:
 #i49133# some const-ness

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: ModelImpl.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/ModelImpl.hxx?r1=1.16.2.6&r2=1.16.2.7
Delta lines:  +10 -10
---------------------
--- ModelImpl.hxx       2008-01-06 21:13:01+0000        1.16.2.6
+++ ModelImpl.hxx       2008-01-24 10:04:47+0000        1.16.2.7
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: ModelImpl.hxx,v $
  *
- *  $Revision: 1.16.2.6 $
+ *  $Revision: 1.16.2.7 $
  *
- *  last change: $Author: fs $ $Date: 2008/01/06 21:13:01 $
+ *  last change: $Author: fs $ $Date: 2008/01/24 10:04:47 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -119,7 +119,7 @@
 {
 private:
     oslInterlockedCount m_refCount;
-    ::osl::Mutex        m_aMutex;
+    mutable ::osl::Mutex    m_aMutex;
 
 public:
     SharedMutex();
@@ -127,7 +127,7 @@
        void SAL_CALL acquire();
        void SAL_CALL release();
 
-    inline ::osl::Mutex&   getMutex() { return m_aMutex; }
+    inline ::osl::Mutex&   getMutex() const { return m_aMutex; }
 
 private:
     ~SharedMutex();
@@ -481,9 +481,9 @@
 
     /** returns the component itself
     */
-    virtual ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface > getThis() = 0;
+    virtual ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface > getThis() const = 0;
 
-    inline ::osl::Mutex& getMutex()
+    inline ::osl::Mutex& getMutex() const
     {
         return m_xMutex->getMutex();
     }
@@ -497,7 +497,7 @@
             if m_pImpl is <NULL/>. Usually, you will set this member in your 
derived
             component's <code>dispose</code> method to <NULL/>.
     */
-    inline ::osl::Mutex& getMutex( GuardAccess )
+    inline ::osl::Mutex& getMutex( GuardAccess ) const
     {
         return getMutex();
     }
@@ -506,7 +506,7 @@
         return m_pImpl;
     }
 
-    void checkDisposed()
+    void checkDisposed() const
     {
         if ( !m_pImpl.is() )
             throw ::com::sun::star::lang::DisposedException( 
::rtl::OUString::createFromAscii( "Component is already disposed." ), getThis() 
);
@@ -532,7 +532,7 @@
         @throws ::com::sun::star::lang::DisposedException
             If the given component is already disposed
     */
-    ModelMethodGuard( ModelDependentComponent& _component )
+    ModelMethodGuard( const ModelDependentComponent& _component )
         :BaseMutexGuard( _component.getMutex( 
ModelDependentComponent::GuardAccess() ) )
     {
         _component.checkDisposed();




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

Reply via email to