Tag: cws_src680_kaddrbook
User: ebischoff
Date: 05/11/22 06:38:58

Modified:
 /dba/connectivity/source/drivers/kab/
  KStatement.cxx, KResultSet.cxx, KPreparedStatement.cxx

Log:
 Using new cast syntax

File Changes:

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

File [changed]: KStatement.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KStatement.cxx?r1=1.1.2.8&r2=1.1.2.9
Delta lines:  +3 -3
-------------------
--- KStatement.cxx      7 Oct 2005 14:30:10 -0000       1.1.2.8
+++ KStatement.cxx      22 Nov 2005 14:38:54 -0000      1.1.2.9
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KStatement.cxx,v $
  *
- *  $Revision: 1.1.2.8 $
+ *  $Revision: 1.1.2.9 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/10/07 14:30:10 $
+ *  last change: $Author: ebischoff $ $Date: 2005/11/22 14:38:54 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -264,7 +264,7 @@
                        ::rtl::OUString::createFromAscii("Invalid selection of 
columns"),
                        NULL);
        }
-       pMeta = (KabResultSetMetaData *) pResult->getMetaData().get();
+       pMeta = static_cast<KabResultSetMetaData 
*>(pResult->getMetaData().get());
        pMeta->setKabFields(xColumns);
 }
 // -------------------------------------------------------------------------

File [changed]: KResultSet.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KResultSet.cxx?r1=1.1.2.7&r2=1.1.2.8
Delta lines:  +7 -7
-------------------
--- KResultSet.cxx      13 Sep 2005 18:20:39 -0000      1.1.2.7
+++ KResultSet.cxx      22 Nov 2005 14:38:54 -0000      1.1.2.8
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KResultSet.cxx,v $
  *
- *  $Revision: 1.1.2.7 $
+ *  $Revision: 1.1.2.8 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/09/13 18:20:39 $
+ *  last change: $Author: ebischoff $ $Date: 2005/11/22 14:38:54 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -118,7 +118,7 @@
 void KabResultSet::allKabAddressees()
 {
        KabCommonStatement* pStatement = m_xStatement.get();
-       KabConnection* pConnection = (KabConnection *) 
pStatement->getConnection().get();
+       KabConnection* pConnection = static_cast<KabConnection 
*>(pStatement->getConnection().get());
        KABC::AddressBook* pAddressBook = pConnection->getAddressBook();
 
        m_aKabAddressees = pAddressBook->allAddressees();
@@ -127,7 +127,7 @@
 void KabResultSet::someKabAddressees(const KabCondition *pCondition)
 {
        KabCommonStatement* pStatement = m_xStatement.get();
-       KabConnection* pConnection = (KabConnection *) 
pStatement->getConnection().get();
+       KabConnection* pConnection = static_cast<KabConnection 
*>(pStatement->getConnection().get());
        KABC::AddressBook* pAddressBook = pConnection->getAddressBook();
 
        KABC::AddressBook::Iterator iterator;
@@ -216,7 +216,7 @@
 
        if (m_nRowPos != -1 && m_nRowPos != nAddressees && m_xMetaData.is())
        {
-               KabResultSetMetaData *pMeta = (KabResultSetMetaData *) 
m_xMetaData.get();
+               KabResultSetMetaData *pMeta = static_cast<KabResultSetMetaData 
*>(m_xMetaData.get());
                sal_Int32 nFieldNumber = pMeta->fieldAtColumn(columnIndex);
                QString aQtName;
 
@@ -343,7 +343,7 @@
 
        if (m_nRowPos != -1 && m_nRowPos != nAddressees && m_xMetaData.is())
        {
-               KabResultSetMetaData *pMeta = (KabResultSetMetaData *) 
m_xMetaData.get();
+               KabResultSetMetaData *pMeta = static_cast<KabResultSetMetaData 
*>(m_xMetaData.get());
                sal_Int32 nFieldNumber = pMeta->fieldAtColumn(columnIndex);
 
                if (nFieldNumber == KAB_FIELD_REVISION)
@@ -861,7 +861,7 @@
 // -------------------------------------------------------------------------
 IPropertyArrayHelper & KabResultSet::getInfoHelper()
 {
-       return *const_cast<KabResultSet*>(this)->getArrayHelper();
+       return *static_cast<KabResultSet*>(this)->getArrayHelper();
 }
 // -------------------------------------------------------------------------
 sal_Bool KabResultSet::convertFastPropertyValue(

File [changed]: KPreparedStatement.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KPreparedStatement.cxx?r1=1.1.2.7&r2=1.1.2.8
Delta lines:  +3 -3
-------------------
--- KPreparedStatement.cxx      12 Oct 2005 16:42:20 -0000      1.1.2.7
+++ KPreparedStatement.cxx      22 Nov 2005 14:38:54 -0000      1.1.2.8
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KPreparedStatement.cxx,v $
  *
- *  $Revision: 1.1.2.7 $
+ *  $Revision: 1.1.2.8 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/10/12 16:42:20 $
+ *  last change: $Author: ebischoff $ $Date: 2005/11/22 14:38:54 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -97,7 +97,7 @@
                        ::rtl::OUString::createFromAscii("Invalid selection of 
columns"),
                        NULL);
        }
-       pMeta = (KabResultSetMetaData *) m_xMetaData.get();
+       pMeta = static_cast<KabResultSetMetaData *>(m_xMetaData.get());
        pMeta->setKabFields(xColumns);
 }
 // -------------------------------------------------------------------------




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

Reply via email to