Tag: cws_src680_dba201b
User: fs      
Date: 05/07/21 07:35:06

Modified:
 /dba/dbaccess/source/core/dataaccess/
  databasecontext.cxx, datasource.cxx

Log:
 slight syntax changes to the recently introduced SharedUNOComponent for better 
readability of client code

File Changes:

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

File [changed]: databasecontext.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasecontext.cxx?r1=1.30.2.2&r2=1.30.2.3
Delta lines:  +3 -3
-------------------
--- databasecontext.cxx 20 Jul 2005 10:19:46 -0000      1.30.2.2
+++ databasecontext.cxx 21 Jul 2005 14:35:02 -0000      1.30.2.3
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: databasecontext.cxx,v $
  *
- *  $Revision: 1.30.2.2 $
+ *  $Revision: 1.30.2.3 $
  *
- *  last change: $Author: fs $ $Date: 2005/07/20 10:19:46 $
+ *  last change: $Author: fs $ $Date: 2005/07/21 14:35:02 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -427,7 +427,7 @@
         // calls registerPrivate in attachResource
            xModel->attachResource(_sURL,aArgs);
 
-        SharedUNOComponent< XModel, CloseableComponent > aEnsureClose( xModel, 
true /* take ownership */ );
+        SharedUNOComponent< XModel, CloseableComponent > aEnsureClose( xModel, 
SharedUNOComponent< XModel, CloseableComponent >::TakeOwnership );
     }
 
     setTransientProperties(_sURL,xExistent);

File [changed]: datasource.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/datasource.cxx?r1=1.60.2.2&r2=1.60.2.3
Delta lines:  +4 -4
-------------------
--- datasource.cxx      20 Jul 2005 10:17:21 -0000      1.60.2.2
+++ datasource.cxx      21 Jul 2005 14:35:03 -0000      1.60.2.3
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: datasource.cxx,v $
  *
- *  $Revision: 1.60.2.2 $
+ *  $Revision: 1.60.2.3 $
  *
- *  last change: $Author: fs $ $Date: 2005/07/20 10:17:21 $
+ *  last change: $Author: fs $ $Date: 2005/07/21 14:35:03 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -1242,9 +1242,9 @@
     SharedModel xModel;
     if ( m_pImpl.is() )
     {
-        xModel = SharedModel( m_pImpl->getModel_noCreate(), false /* don't 
take ownership if the model already existed */ );
+        xModel.reset( m_pImpl->getModel_noCreate(), 
SharedModel::NoTakeOwnership );
         if ( !xModel.is() )
-            xModel = SharedModel( m_pImpl->createNewModel_deliverOwnership(), 
_bTakeOwnershipIfNewlyCreated );
+            xModel.reset( m_pImpl->createNewModel_deliverOwnership(), 
_bTakeOwnershipIfNewlyCreated ? SharedModel::TakeOwnership : 
SharedModel::NoTakeOwnership );
     }
     return xModel;
 }




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

Reply via email to