summaryrefslogtreecommitdiff
path: root/basegfx/source/tuple
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2004-06-25 16:19:01 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2004-06-25 16:19:01 +0000
commitd1445069b9d07f31911e53f01fd717e1f70e5d18 (patch)
tree06034b07ad2cbcc4515af0696bac348f8ab8b58f /basegfx/source/tuple
parentbb6ebfa1ee8f3387f64e8f98f1c6bea180978798 (diff)
INTEGRATION: CWS tune04 (1.2.26); FILE MERGED
2004/06/15 07:23:35 cmc 1.2.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/b2ituple.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/basegfx/source/tuple/b2ituple.cxx b/basegfx/source/tuple/b2ituple.cxx
index 4211d66db6c6..0f17b9386e2e 100644
--- a/basegfx/source/tuple/b2ituple.cxx
+++ b/basegfx/source/tuple/b2ituple.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2ituple.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: thb $ $Date: 2004-02-25 09:54:11 $
+ * last change: $Author: hjs $ $Date: 2004-06-25 17:19:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,11 +65,18 @@
#ifndef _BGFX_TUPLE_B2DTUPLE_HXX
#include <basegfx/tuple/b2dtuple.hxx>
#endif
+#ifndef INCLUDED_RTL_INSTANCE_HXX
+#include <rtl/instance.hxx>
+#endif
+
+namespace { struct EmptyTuple : public rtl::Static<basegfx::B2ITuple, EmptyTuple> {}; }
namespace basegfx
{
- // initialize static member
- ::basegfx::B2ITuple B2ITuple::maEmptyTuple(0, 0);
+ const B2ITuple& B2ITuple::getEmptyTuple()
+ {
+ return EmptyTuple::get();
+ }
// external operators
//////////////////////////////////////////////////////////////////////////