Tag: cws_src680_dba201b
User: fs      
Date: 05/07/21 07:37:28

Modified:
 /dba/dbaccess/source/ui/browser/
  unodatbr.cxx

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

File Changes:

Directory: /dba/dbaccess/source/ui/browser/
===========================================

File [changed]: unodatbr.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/unodatbr.cxx?r1=1.170.20.4&r2=1.170.20.5
Delta lines:  +6 -6
-------------------
--- unodatbr.cxx        21 Jul 2005 08:14:08 -0000      1.170.20.4
+++ unodatbr.cxx        21 Jul 2005 14:37:25 -0000      1.170.20.5
@@ -2,9 +2,9 @@
  *
  *     $RCSfile: unodatbr.cxx,v $
  *
- *  $Revision: 1.170.20.4 $
+ *  $Revision: 1.170.20.5 $
  *
- *  last change: $Author: fs $ $Date: 2005/07/21 08:14:08 $
+ *  last change: $Author: fs $ $Date: 2005/07/21 14:37:25 $
  *
  *     The Contents of this file are made available subject to the terms of
  *     either of the following licenses
@@ -3202,7 +3202,7 @@
 
     // if we have a connection at this point, it was either passed from 
outside, our
     // determined from a outer DB document. In both cases, do not dispose it 
later on.
-    SharedConnection xConnection( xForeignConnection, false );
+    SharedConnection xConnection( xForeignConnection, 
SharedConnection::NoTakeOwnership );
 
     // should we display all registered databases in the left hand side tree?
     // or only *one* special?
@@ -3372,9 +3372,9 @@
                        sConnectingContext.SearchAndReplaceAscii("$name$", 
aDSName);
 
                        // connect
-            _rConnection = SharedConnection(
-                connect( getDataSourceAcessor( _pDSEntry ), 
sConnectingContext, rtl::OUString(), sal_True),
-                true    /* take ownership */
+            _rConnection.reset(
+                connect( getDataSourceAcessor( _pDSEntry ), 
sConnectingContext, rtl::OUString(), sal_True ),
+                SharedConnection::TakeOwnership
             );
                        if ( _rConnection.is() )
             {




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

Reply via email to