summaryrefslogtreecommitdiff
path: root/store/source/store.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-07-30 14:29:46 +0000
committerKurt Zenker <kz@openoffice.org>2004-07-30 14:29:46 +0000
commit0056f84d5598f65491052e0d406737f1752081c3 (patch)
treedae942838df61bcce847d5bf4bdb740802679420 /store/source/store.cxx
parente74c25fdb15a8940a94260b5f90b6224d4ba34c6 (diff)
INTEGRATION: CWS gcc340fixes01 (1.2.106); FILE MERGED
2004/06/04 15:09:15 fa 1.2.106.1: #i28777# gcc 3.4 fixes (only instantiate static object in template once)
Diffstat (limited to 'store/source/store.cxx')
-rw-r--r--store/source/store.cxx28
1 files changed, 25 insertions, 3 deletions
diff --git a/store/source/store.cxx b/store/source/store.cxx
index dd19101efa58..63e7918fd55e 100644
--- a/store/source/store.cxx
+++ b/store/source/store.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: store.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mhu $ $Date: 2001-03-13 20:49:56 $
+ * last change: $Author: kz $ $Date: 2004-07-30 15:29:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,7 +59,7 @@
*
************************************************************************/
-#define _STORE_STORE_CXX_ "$Revision: 1.2 $"
+#define _STORE_STORE_CXX_ "$Revision: 1.3 $"
#ifndef _SAL_TYPES_H_
#include <sal/types.h>
@@ -101,6 +101,28 @@
using rtl::Reference;
using rtl::OString;
+namespace store
+{
+/** Template helper class as type safe Reference to store_handle_type.
+ */
+template<class store_handle_type>
+class OStoreHandle : public rtl::Reference<store_handle_type>
+{
+public:
+ OStoreHandle (store_handle_type * pHandle)
+ : rtl::Reference<store_handle_type> (pHandle)
+ {}
+
+ static store_handle_type * SAL_CALL query (void * pHandle)
+ {
+ return store::query (
+ static_cast<IStoreHandle*>(pHandle),
+ static_cast<store_handle_type*>(0));
+ }
+};
+}
+
+
using namespace store;
/*========================================================================