diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-25 16:19:14 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-25 16:19:14 +0000 |
commit | 257fb020fdd2ca31627fd415a021d276f29a5899 (patch) | |
tree | caafd206b282fca7f66081ddf24a1a47fa62f8d2 /basegfx/source/tuple | |
parent | d1445069b9d07f31911e53f01fd717e1f70e5d18 (diff) |
INTEGRATION: CWS tune04 (1.4.26); FILE MERGED
2004/06/15 07:23:36 cmc 1.4.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/b3dtuple.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/basegfx/source/tuple/b3dtuple.cxx b/basegfx/source/tuple/b3dtuple.cxx index 718903f0864f..1b91211b68ca 100644 --- a/basegfx/source/tuple/b3dtuple.cxx +++ b/basegfx/source/tuple/b3dtuple.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b3dtuple.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: aw $ $Date: 2003-11-28 11:18:14 $ + * last change: $Author: hjs $ $Date: 2004-06-25 17:19:14 $ * * 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_B3DTUPLE_HXX #include <basegfx/tuple/b3dtuple.hxx> #endif +#ifndef INCLUDED_RTL_INSTANCE_HXX +#include <rtl/instance.hxx> +#endif + +namespace { struct EmptyTuple : public rtl::Static<basegfx::B3DTuple, EmptyTuple> {}; } namespace basegfx { - // initialize static member - ::basegfx::B3DTuple B3DTuple::maEmptyTuple(0.0, 0.0, 0.0); + static const B3DTuple& getEmptyTuple() + { + return EmptyTuple::get(); + } } // end of namespace basegfx // eof |