summaryrefslogtreecommitdiff
path: root/basegfx/source/tuple
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2004-06-25 16:18:48 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2004-06-25 16:18:48 +0000
commitbb6ebfa1ee8f3387f64e8f98f1c6bea180978798 (patch)
tree5b4767b6edb2c4fbaf8062cc714e9d1b15858579 /basegfx/source/tuple
parent24d402bac4f6b48262be712d622e1e4054a5ecb6 (diff)
INTEGRATION: CWS tune04 (1.1.26); FILE MERGED
2004/06/15 07:23:35 cmc 1.1.26.1: #i29636# turn global objects into local static data protected with swishy double-locked templated template
Diffstat (limited to 'basegfx/source/tuple')
-rw-r--r--basegfx/source/tuple/b2i64tuple.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/basegfx/source/tuple/b2i64tuple.cxx b/basegfx/source/tuple/b2i64tuple.cxx
index 0cdabf35e90f..4f4105ed9a52 100644
--- a/basegfx/source/tuple/b2i64tuple.cxx
+++ b/basegfx/source/tuple/b2i64tuple.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2i64tuple.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: thb $ $Date: 2004-01-16 10:37:42 $
+ * last change: $Author: hjs $ $Date: 2004-06-25 17:18:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,11 +62,18 @@
#ifndef _BGFX_TUPLE_B2I64TUPLE_HXX
#include <basegfx/tuple/b2i64tuple.hxx>
#endif
+#ifndef INCLUDED_RTL_INSTANCE_HXX
+#include <rtl/instance.hxx>
+#endif
+
+namespace { struct EmptyTuple : public rtl::Static<basegfx::B2I64Tuple, EmptyTuple> {}; }
namespace basegfx
{
- // initialize static member
- ::basegfx::B2I64Tuple B2I64Tuple::maEmptyTuple(0, 0);
+ const B2I64Tuple& B2I64Tuple::getEmptyTuple()
+ {
+ return EmptyTuple::get();
+ }
} // end of namespace basegfx