Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d3794d2d
Kaydet (Commit)
d3794d2d
authored
Eyl 09, 2011
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sb140: #i117295# use rtl::Static
üst
afe7061d
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
95 additions
and
374 deletions
+95
-374
except.cxx
bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
+4
-17
except.cxx
bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx
+4
-17
except.cxx
bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx
+4
-15
except.cxx
bridges/source/cpp_uno/gcc3_ios_arm/except.cxx
+4
-15
except.cxx
bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_mips/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_s390/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
+4
-8
except.cxx
bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/mingw_intel/except.cxx
+4
-16
except.cxx
bridges/source/cpp_uno/msvc_win32_intel/except.cxx
+3
-15
except.cxx
bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx
+4
-15
No files found.
bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -36,6 +36,7 @@
#include <list>
#include <map>
#include <rtl/alloc.h>
#include <rtl/instance.hxx>
#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
...
...
@@ -313,6 +314,8 @@ void* RTTIHolder::generateRTTI( typelib_CompoundTypeDescription * pCompTypeDescr
return
pRTTI
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTIHolder
,
RTTISingleton
>
{};
//__________________________________________________________________________________________________
static
void
deleteException
(
...
...
@@ -345,23 +348,7 @@ void cc50_solaris_intel_raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cp
// will be released by deleteException
typelib_typedescriptionreference_getDescription
(
&
pTypeDescr
,
pUnoExc
->
pType
);
void
*
pRTTI
;
{
static
::
osl
::
Mutex
aMutex
;
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
aMutex
);
static
RTTIHolder
*
s_pRTTI
=
0
;
if
(
!
s_pRTTI
)
{
#ifdef LEAK_STATIC_DATA
s_pRTTI
=
new
RTTIHolder
();
#else
static
RTTIHolder
s_aRTTI
;
s_pRTTI
=
&
s_aRTTI
;
#endif
}
pRTTI
=
s_pRTTI
->
generateRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
pRTTI
=
RTTISingleton
::
get
().
generateRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
}
// a must be
...
...
bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -36,6 +36,7 @@
#include <list>
#include <map>
#include <rtl/alloc.h>
#include <rtl/instance.hxx>
#include <osl/diagnose.h>
#include <typelib/typedescription.hxx>
#include <com/sun/star/uno/Any.hxx>
...
...
@@ -315,6 +316,8 @@ void* RTTIHolder::generateRTTI( typelib_CompoundTypeDescription * pCompTypeDescr
return
pRTTI
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTIHolder
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
...
...
@@ -348,23 +351,7 @@ void cc50_solaris_sparc_raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cp
// will be released by deleteException
typelib_typedescriptionreference_getDescription
(
&
pTypeDescr
,
pUnoExc
->
pType
);
void
*
pRTTI
;
{
static
::
osl
::
Mutex
aMutex
;
::
osl
::
Guard
<
::
osl
::
Mutex
>
guard
(
aMutex
);
static
RTTIHolder
*
s_pRTTI
=
0
;
if
(
!
s_pRTTI
)
{
#ifdef LEAK_STATIC_DATA
s_pRTTI
=
new
RTTIHolder
();
#else
static
RTTIHolder
s_aRTTI
;
s_pRTTI
=
&
s_aRTTI
;
#endif
}
pRTTI
=
s_pRTTI
->
generateRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
pRTTI
=
RTTISingleton
::
get
().
generateRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
}
// a must be
...
...
bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -34,6 +34,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -205,6 +206,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,21 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_ios_arm/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -34,6 +34,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -253,21 +256,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,6 +35,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,22 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -32,6 +32,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -205,6 +206,8 @@ namespace CPPU_CURRENT_NAMESPACE
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -251,22 +254,7 @@ namespace CPPU_CURRENT_NAMESPACE
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -32,6 +32,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -205,6 +206,8 @@ namespace CPPU_CURRENT_NAMESPACE
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -251,22 +254,7 @@ namespace CPPU_CURRENT_NAMESPACE
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,6 +35,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,22 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -36,6 +36,7 @@
#include <cxxabi.h>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -215,6 +216,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -261,22 +264,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -32,6 +32,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -205,6 +206,8 @@ namespace CPPU_CURRENT_NAMESPACE
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -251,22 +254,7 @@ namespace CPPU_CURRENT_NAMESPACE
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_mips/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -31,6 +31,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -202,6 +203,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -248,22 +251,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,6 +35,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,22 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,6 +35,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,22 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_s390/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,6 +35,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,22 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,6 +35,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -240,22 +243,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -34,6 +34,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -205,6 +206,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -251,22 +254,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
*
s_rtti
=
0
;
if
(
!
s_rtti
)
{
MutexGuard
guard
(
Mutex
::
getGlobalMutex
()
);
if
(
!
s_rtti
)
{
#ifdef LEAK_STATIC_DATA
s_rtti
=
new
RTTI
();
#else
static
RTTI
rtti_data
;
s_rtti
=
&
rtti_data
;
#endif
}
}
rtti
=
(
type_info
*
)
s_rtti
->
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -35,9 +35,9 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/instance.hxx>
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
...
...
@@ -216,6 +216,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -231,11 +233,6 @@ static void deleteException( void * pExc )
}
}
namespace
{
struct
theRTTI
:
public
rtl
::
Static
<
RTTI
,
theRTTI
>
{};
}
//==================================================================================================
void
raiseException
(
uno_Any
*
pUnoExc
,
uno_Mapping
*
pUno2Cpp
)
{
...
...
@@ -268,8 +265,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
// destruct uno exception
::
uno_any_destruct
(
pUnoExc
,
0
);
// avoiding locked counts
static
RTTI
&
rRTTI
=
theRTTI
::
get
();
rtti
=
rRTTI
.
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
rtti
=
(
type_info
*
)
RTTISingleton
::
get
().
getRTTI
(
(
typelib_CompoundTypeDescription
*
)
pTypeDescr
);
TYPELIB_DANGER_RELEASE
(
pTypeDescr
);
OSL_ENSURE
(
rtti
,
"### no rtti for throwing exception!"
);
if
(
!
rtti
)
...
...
bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
Dosyayı görüntüle @
d3794d2d
...
...
@@ -34,6 +34,7 @@
#include <cxxabi.h>
#include <boost/unordered_map.hpp>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
...
...
@@ -206,6 +207,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return
rtti
;
}
struct
RTTISingleton
:
public
rtl
::
Static
<
RTTI
,
RTTISingleton
>
{};
//--------------------------------------------------------------------------------------------------
static
void
deleteException
(
void
*
pExc
)
{
...
...
@@ -252,22 +255,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )