diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 08:32:56 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 08:32:56 +0000 |
commit | 1126a09af60aa64a390a95ff16fd972c391ca6e8 (patch) | |
tree | 4b66926b884466d4fb8fef468fd47e63539e43ad /sal/inc | |
parent | 88a7e54c616b9883b395977db4c0e3f72b931cf3 (diff) |
INTEGRATION: CWS uno4 (1.2.92); FILE MERGED
2003/05/16 15:49:24 sb 1.2.92.2: #i13771# Fixed typo.
2003/05/08 12:11:00 kso 1.2.92.1: #i13771# - fixed and completed sample code.
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/instance.hxx | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/sal/inc/rtl/instance.hxx b/sal/inc/rtl/instance.hxx index 161b2e3487dc..d6f158823895 100644 --- a/sal/inc/rtl/instance.hxx +++ b/sal/inc/rtl/instance.hxx @@ -2,9 +2,9 @@ * * $RCSfile: instance.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: sb $ $Date: 2002-10-28 09:55:07 $ + * last change: $Author: vg $ $Date: 2003-05-22 09:32:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -103,8 +103,11 @@ namespace { Code: + #include "rtl/instance.hxx" + #include "osl/getglobalmutex.hxx" + namespace { - struct Init() + struct Init { T * operator()() { @@ -139,8 +142,11 @@ namespace { Code: + #include "rtl/instance.hxx" + #include "osl/getglobalmutex.hxx" + namespace { - struct Init() + struct Init { T * operator()() { @@ -177,8 +183,10 @@ namespace { Code: + #include "rtl/instance.hxx" + namespace { - struct InitInstance() + struct InitInstance { T * operator()() { @@ -187,7 +195,7 @@ namespace { } }; - struct InitGuard() + struct InitGuard { SomeMutex * operator()() { @@ -225,8 +233,11 @@ namespace { Code: + #include "rtl/instance.hxx" + #include "osl/getglobalmutex.hxx" + namespace { - struct InitInstance() + struct InitInstance { T * operator()() { @@ -235,7 +246,7 @@ namespace { } } - struct InitData() + struct InitData { Data const & operator()() { @@ -350,8 +361,11 @@ private: #if !defined _MSC_VER template< typename Inst, typename InstCtor, - typename Guard, typename GuardCtor > -Inst * rtl_Instance< Inst, InstCtor, Guard, GuardCtor >::m_pInstance = 0; + typename Guard, typename GuardCtor, + typename Data, typename DataCtor > +Inst * +rtl_Instance< Inst, InstCtor, Guard, GuardCtor, Data, DataCtor >::m_pInstance += 0; #endif // _MSC_VER } |