summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-07-05 06:03:03 +0000
committerOcke Janssen <oj@openoffice.org>2002-07-05 06:03:03 +0000
commite0ae31415156d40cd66b4fe75a39a36f9fe2476e (patch)
tree365478db8a8e82facbd3188828945bc47a3fbc5e /connectivity/source
parentd29e677019a82378e6370e27de10644eec138ca6 (diff)
#99549# insert and remove some delete and new operators
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx8
-rw-r--r--connectivity/source/inc/OColumn.hxx13
-rw-r--r--connectivity/source/inc/OSubComponent.hxx5
-rw-r--r--connectivity/source/inc/OTypeInfo.hxx14
-rw-r--r--connectivity/source/inc/TDatabaseMetaDataBase.hxx8
-rw-r--r--connectivity/source/inc/TKeyValue.hxx13
-rw-r--r--connectivity/source/inc/TSkipDeletedSet.hxx16
-rw-r--r--connectivity/source/inc/TSortIndex.hxx13
-rw-r--r--connectivity/source/inc/sqlscan.hxx15
9 files changed, 81 insertions, 24 deletions
diff --git a/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx b/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx
index 04abad5fb6..43374c4ef3 100644
--- a/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx
+++ b/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FDatabaseMetaDataResultSetMetaData.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2001-07-12 14:14:03 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -96,15 +96,13 @@ namespace connectivity
sal_Int32 m_nColCount;
protected:
- ~ODatabaseMetaDataResultSetMetaData();
+ virtual ~ODatabaseMetaDataResultSetMetaData();
public:
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
ODatabaseMetaDataResultSetMetaData( )
: m_nColCount(0)
{
}
-
-
/// Avoid ambigous cast error from the compiler.
inline operator ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > () throw()
{ return this; }
diff --git a/connectivity/source/inc/OColumn.hxx b/connectivity/source/inc/OColumn.hxx
index 0de22309c3..0eb51e5cd2 100644
--- a/connectivity/source/inc/OColumn.hxx
+++ b/connectivity/source/inc/OColumn.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: OColumn.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:14:24 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -144,6 +144,15 @@ namespace connectivity
m_ColumnLabel = _aColumnName;
}
+ inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW( () )
+ { return ::rtl_allocateMemory( nSize ); }
+ inline static void * SAL_CALL operator new( size_t nSize,void* _pHint ) SAL_THROW( () )
+ { return _pHint; }
+ inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW( () )
+ { ::rtl_freeMemory( pMem ); }
+ inline static void SAL_CALL operator delete( void * pMem,void* _pHint ) SAL_THROW( () )
+ { }
+
sal_Bool isAutoIncrement() const { return m_AutoIncrement; }
sal_Bool isCaseSensitive() const { return m_CaseSensitive; }
sal_Bool isSearchable() const { return m_Searchable; }
diff --git a/connectivity/source/inc/OSubComponent.hxx b/connectivity/source/inc/OSubComponent.hxx
index 28d8316e03..96a70eb569 100644
--- a/connectivity/source/inc/OSubComponent.hxx
+++ b/connectivity/source/inc/OSubComponent.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: OSubComponent.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2001-05-14 11:54:42 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -106,7 +106,6 @@ namespace connectivity
{
}
-
protected:
void dispose_ChildImpl()
{
diff --git a/connectivity/source/inc/OTypeInfo.hxx b/connectivity/source/inc/OTypeInfo.hxx
index edd960b53f..3bc9e44c50 100644
--- a/connectivity/source/inc/OTypeInfo.hxx
+++ b/connectivity/source/inc/OTypeInfo.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: OTypeInfo.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2001-04-12 12:34:29 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -108,6 +108,16 @@ namespace connectivity
,nPrecision(0)
,nSearchType( ::com::sun::star::sdbc::ColumnSearch::FULL)
{}
+
+ inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW( () )
+ { return ::rtl_allocateMemory( nSize ); }
+ inline static void * SAL_CALL operator new( size_t nSize,void* _pHint ) SAL_THROW( () )
+ { return _pHint; }
+ inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW( () )
+ { ::rtl_freeMemory( pMem ); }
+ inline static void SAL_CALL operator delete( void * pMem,void* _pHint ) SAL_THROW( () )
+ { }
+
sal_Bool operator == (const OTypeInfo& lh) const { return lh.nType == nType; }
sal_Bool operator != (const OTypeInfo& lh) const { return lh.nType != nType; }
};
diff --git a/connectivity/source/inc/TDatabaseMetaDataBase.hxx b/connectivity/source/inc/TDatabaseMetaDataBase.hxx
index 2a45c6595e..a66055c0c7 100644
--- a/connectivity/source/inc/TDatabaseMetaDataBase.hxx
+++ b/connectivity/source/inc/TDatabaseMetaDataBase.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TDatabaseMetaDataBase.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: oj $ $Date: 2000-11-03 14:03:17 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,10 +84,12 @@ namespace connectivity
protected:
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener> m_xListenerHelper; // forward the calls from the connection to me
+
+ virtual ~ODatabaseMetaDataBase();
public:
ODatabaseMetaDataBase(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
- virtual ~ODatabaseMetaDataBase();
+
// XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
};
diff --git a/connectivity/source/inc/TKeyValue.hxx b/connectivity/source/inc/TKeyValue.hxx
index d351dbb8ac..c34e321df5 100644
--- a/connectivity/source/inc/TKeyValue.hxx
+++ b/connectivity/source/inc/TKeyValue.hxx
@@ -2,9 +2,9 @@
*
* $RCS: $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2002-07-04 06:36:40 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:02 $
*
* The Contents of this are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,15 @@ namespace connectivity
~OKeyValue();
+ inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW( () )
+ { return ::rtl_allocateMemory( nSize ); }
+ inline static void * SAL_CALL operator new( size_t nSize,void* _pHint ) SAL_THROW( () )
+ { return _pHint; }
+ inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW( () )
+ { ::rtl_freeMemory( pMem ); }
+ inline static void SAL_CALL operator delete( void * pMem,void* _pHint ) SAL_THROW( () )
+ { }
+
static OKeyValue* createKeyValue(sal_Int32 nVal);
// static OKeyValue* createEmptyKeyValue();
diff --git a/connectivity/source/inc/TSkipDeletedSet.hxx b/connectivity/source/inc/TSkipDeletedSet.hxx
index 146a7dbd70..06a84b364a 100644
--- a/connectivity/source/inc/TSkipDeletedSet.hxx
+++ b/connectivity/source/inc/TSkipDeletedSet.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TSkipDeletedSet.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2001-11-29 16:33:10 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,6 +65,9 @@
#include "TResultSetHelper.hxx"
#endif
+#ifndef _RTL_ALLOC_H_
+#include <rtl/alloc.h>
+#endif
#include <map>
#include <vector>
@@ -84,6 +87,15 @@ namespace connectivity
public:
OSkipDeletedSet(IResultSetHelper* _pHelper);
+ inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW( () )
+ { return ::rtl_allocateMemory( nSize ); }
+ inline static void * SAL_CALL operator new( size_t nSize,void* _pHint ) SAL_THROW( () )
+ { return _pHint; }
+ inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW( () )
+ { ::rtl_freeMemory( pMem ); }
+ inline static void SAL_CALL operator delete( void * pMem,void* _pHint ) SAL_THROW( () )
+ { }
+
/**
skipDeleted moves the resultset to the position defined by the parameters
it garantees that the row isn't deleted
diff --git a/connectivity/source/inc/TSortIndex.hxx b/connectivity/source/inc/TSortIndex.hxx
index 4d875b988a..1310bae08e 100644
--- a/connectivity/source/inc/TSortIndex.hxx
+++ b/connectivity/source/inc/TSortIndex.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TSortIndex.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2001-11-09 06:59:01 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -106,6 +106,15 @@ namespace connectivity
~OSortIndex();
+ inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW( () )
+ { return ::rtl_allocateMemory( nSize ); }
+ inline static void * SAL_CALL operator new( size_t nSize,void* _pHint ) SAL_THROW( () )
+ { return _pHint; }
+ inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW( () )
+ { ::rtl_freeMemory( pMem ); }
+ inline static void SAL_CALL operator delete( void * pMem,void* _pHint ) SAL_THROW( () )
+ { }
+
/**
AddKeyValue appends a new value.
diff --git a/connectivity/source/inc/sqlscan.hxx b/connectivity/source/inc/sqlscan.hxx
index 54d1228b87..b1bbb22101 100644
--- a/connectivity/source/inc/sqlscan.hxx
+++ b/connectivity/source/inc/sqlscan.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sqlscan.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2001-05-30 13:37:52 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:03:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,7 +83,16 @@ namespace connectivity
public:
OSQLScanner();
- ~OSQLScanner();
+ virtual ~OSQLScanner();
+
+ inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW( () )
+ { return ::rtl_allocateMemory( nSize ); }
+ inline static void * SAL_CALL operator new( size_t nSize,void* _pHint ) SAL_THROW( () )
+ { return _pHint; }
+ inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW( () )
+ { ::rtl_freeMemory( pMem ); }
+ inline static void SAL_CALL operator delete( void * pMem,void* _pHint ) SAL_THROW( () )
+ { }
virtual sal_Int32 SQLyygetc(void);
virtual void SQLyyerror(char *fmt);