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

Modified:
 /dba/dbaccess/source/ui/misc/
  TokenWriter.cxx

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

File Changes:

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

File [changed]: TokenWriter.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/TokenWriter.cxx?r1=1.25.22.1&r2=1.25.22.2
Delta lines:  +4 -4
-------------------
--- TokenWriter.cxx     20 Jul 2005 09:56:52 -0000      1.25.22.1
+++ TokenWriter.cxx     21 Jul 2005 14:37:44 -0000      1.25.22.2
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: TokenWriter.cxx,v $
  *
- *  $Revision: 1.25.22.1 $
+ *  $Revision: 1.25.22.2 $
  *
- *  last change: $Author: fs $ $Date: 2005/07/20 09:56:52 $
+ *  last change: $Author: fs $ $Date: 2005/07/21 14:37:44 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -288,7 +288,7 @@
        if(_aDataDescriptor.has(daConnection))
     {
         Reference< XConnection > xPureConn( _aDataDescriptor[daConnection], 
UNO_QUERY );
-        m_xConnection = SharedConnection( xPureConn, false /* don't take 
ownership */ );
+        m_xConnection.reset( xPureConn, SharedConnection::NoTakeOwnership );
     }
        if(_aDataDescriptor.has(daSelection))
                _aDataDescriptor[daSelection]   >>= m_aSelection;
@@ -333,7 +333,7 @@
 
         Reference< XConnection > xConnection;
                SQLExceptionInfo aInfo = ::dbaui::createConnection( 
m_sDataSourceName, xDatabaseContext, m_xFactory, xEvt, xConnection );
-        m_xConnection = SharedConnection( xConnection );
+        m_xConnection.reset( xConnection );
 
                if(aInfo.isValid() && aInfo.getType() == 
SQLExceptionInfo::SQL_EXCEPTION)
                        throw *static_cast<const SQLException*>(aInfo);




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

Reply via email to