diff options
-rw-r--r-- | basegfx/source/tuple/b3i64tuple.cxx | 15 | ||||
-rw-r--r-- | basegfx/source/tuple/b3ituple.cxx | 15 |
2 files changed, 22 insertions, 8 deletions
diff --git a/basegfx/source/tuple/b3i64tuple.cxx b/basegfx/source/tuple/b3i64tuple.cxx index 5c413d01f995..f0f8c28db689 100644 --- a/basegfx/source/tuple/b3i64tuple.cxx +++ b/basegfx/source/tuple/b3i64tuple.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b3i64tuple.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: thb $ $Date: 2004-01-16 10:38:15 $ + * last change: $Author: hjs $ $Date: 2004-06-25 17:19:27 $ * * 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_B3I64TUPLE_HXX #include <basegfx/tuple/b3i64tuple.hxx> #endif +#ifndef INCLUDED_RTL_INSTANCE_HXX +#include <rtl/instance.hxx> +#endif + +namespace { struct EmptyTuple : public rtl::Static<basegfx::B3I64Tuple, EmptyTuple> {}; } namespace basegfx { - // initialize static member - ::basegfx::B3I64Tuple B3I64Tuple::maEmptyTuple(0, 0, 0); + static const B3I64Tuple& getEmptyTuple() + { + return EmptyTuple::get(); + } } // end of namespace basegfx // eof diff --git a/basegfx/source/tuple/b3ituple.cxx b/basegfx/source/tuple/b3ituple.cxx index 70cc5e6df2e3..7a00f4de5218 100644 --- a/basegfx/source/tuple/b3ituple.cxx +++ b/basegfx/source/tuple/b3ituple.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b3ituple.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: thb $ $Date: 2004-01-16 10:37:59 $ + * last change: $Author: hjs $ $Date: 2004-06-25 17:19:40 $ * * 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_B3ITUPLE_HXX #include <basegfx/tuple/b3ituple.hxx> #endif +#ifndef INCLUDED_RTL_INSTANCE_HXX +#include <rtl/instance.hxx> +#endif + +namespace { struct EmptyTuple : public rtl::Static<basegfx::B3ITuple, EmptyTuple> {}; } namespace basegfx { - // initialize static member - ::basegfx::B3ITuple B3ITuple::maEmptyTuple(0, 0, 0); + static const B3ITuple& getEmptyTuple() + { + return EmptyTuple::get(); + } } // end of namespace basegfx // eof |