diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-25 16:19:01 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-25 16:19:01 +0000 |
commit | 39d6369f4ed99ee91bfb573c674e20d8b301769b (patch) | |
tree | 3fb49fddea5d90aaeda9eca3d7ce14d425e834bc /basegfx/source/tuple/b2ituple.cxx | |
parent | 99eebece34844c70cacd674ee2b53a36d24ce6e3 (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/b2ituple.cxx')
-rw-r--r-- | basegfx/source/tuple/b2ituple.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/basegfx/source/tuple/b2ituple.cxx b/basegfx/source/tuple/b2ituple.cxx index db1735d8d8..14e438eea1 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 ////////////////////////////////////////////////////////////////////////// |