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
723e74b5
Kaydet (Commit)
723e74b5
authored
Nis 02, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use rtl::Static where double-locked pattern used
üst
3dfc2de7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
31 deletions
+25
-31
accimplaccess.hxx
comphelper/inc/comphelper/accimplaccess.hxx
+1
-1
accimplaccess.cxx
comphelper/source/misc/accimplaccess.cxx
+5
-13
comphelper_services.cxx
comphelper/source/misc/comphelper_services.cxx
+14
-6
propstate.cxx
comphelper/source/property/propstate.cxx
+5
-11
No files found.
comphelper/inc/comphelper/accimplaccess.hxx
Dosyayı görüntüle @
723e74b5
...
@@ -154,7 +154,7 @@ namespace comphelper
...
@@ -154,7 +154,7 @@ namespace comphelper
private
:
private
:
COMPHELPER_DLLPRIVATE
static
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
&
getUnoTunnelImplementationId
();
COMPHELPER_DLLPRIVATE
static
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
getUnoTunnelImplementationId
();
};
};
//.........................................................................
//.........................................................................
...
...
comphelper/source/misc/accimplaccess.cxx
Dosyayı görüntüle @
723e74b5
...
@@ -121,21 +121,13 @@ namespace comphelper
...
@@ -121,21 +121,13 @@ namespace comphelper
return
(
NULL
!=
pImplementation
);
return
(
NULL
!=
pImplementation
);
}
}
namespace
{
struct
lcl_ImplId
:
public
rtl
::
Static
<
::
cppu
::
OImplementationId
,
lcl_ImplId
>
{};
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
const
Sequence
<
sal_Int8
>
&
OAccessibleImplementationAccess
::
getUnoTunnelImplementationId
()
const
Sequence
<
sal_Int8
>
OAccessibleImplementationAccess
::
getUnoTunnelImplementationId
()
{
{
static
Sequence
<
sal_Int8
>
aId
;
::
cppu
::
OImplementationId
&
rID
=
lcl_ImplId
::
get
();
if
(
!
aId
.
getLength
()
)
return
rID
.
getImplementationId
();
{
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
!
aId
.
getLength
()
)
{
static
::
cppu
::
OImplementationId
aImplId
;
// unfortunately, the OImplementationId::getImplementationId returns a copy, not a static reference ...
aId
=
aImplId
.
getImplementationId
();
}
}
return
aId
;
}
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
...
...
comphelper/source/misc/comphelper_services.cxx
Dosyayı görüntüle @
723e74b5
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
#include "comphelper_module.hxx"
#include "comphelper_module.hxx"
#include <rtl/instance.hxx>
//--------------------------------------------------------------------
//--------------------------------------------------------------------
extern
void
createRegistryInfo_OPropertyBag
();
extern
void
createRegistryInfo_OPropertyBag
();
extern
void
createRegistryInfo_SequenceOutputStream
();
extern
void
createRegistryInfo_SequenceOutputStream
();
...
@@ -49,13 +51,12 @@ namespace comphelper { namespace module
...
@@ -49,13 +51,12 @@ namespace comphelper { namespace module
{
{
//........................................................................
//........................................................................
static
void
initializeModule
()
namespace
{
{
static
bool
bInitialized
(
false
);
class
doInitialize
if
(
!
bInitialized
)
{
{
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
public
:
if
(
!
bInitialized
)
doInitialize
(
)
{
{
createRegistryInfo_OPropertyBag
();
createRegistryInfo_OPropertyBag
();
createRegistryInfo_SequenceOutputStream
();
createRegistryInfo_SequenceOutputStream
();
...
@@ -70,7 +71,14 @@ namespace comphelper { namespace module
...
@@ -70,7 +71,14 @@ namespace comphelper { namespace module
createRegistryInfo_OSimpleLogRing
();
createRegistryInfo_OSimpleLogRing
();
createRegistryInfo_OOfficeRestartManager
();
createRegistryInfo_OOfficeRestartManager
();
}
}
}
};
struct
theInitializer
:
public
rtl
::
Static
<
doInitialize
,
theInitializer
>
{};
}
static
void
initializeModule
()
{
theInitializer
::
get
();
}
}
//........................................................................
//........................................................................
...
...
comphelper/source/property/propstate.cxx
Dosyayı görüntüle @
723e74b5
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include <com/sun/star/uno/genfunc.h>
#include <com/sun/star/uno/genfunc.h>
#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/sequence.hxx>
#include <rtl/instance.hxx>
//.........................................................................
//.........................................................................
namespace
comphelper
namespace
comphelper
...
@@ -217,20 +218,13 @@ namespace comphelper
...
@@ -217,20 +218,13 @@ namespace comphelper
);
);
}
}
namespace
{
struct
lcl_ImplId
:
public
rtl
::
Static
<
::
cppu
::
OImplementationId
,
lcl_ImplId
>
{};
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
Sequence
<
sal_Int8
>
SAL_CALL
OStatefulPropertySet
::
getImplementationId
()
throw
(
RuntimeException
)
Sequence
<
sal_Int8
>
SAL_CALL
OStatefulPropertySet
::
getImplementationId
()
throw
(
RuntimeException
)
{
{
static
::
cppu
::
OImplementationId
*
pId
=
NULL
;
::
cppu
::
OImplementationId
&
rID
=
lcl_ImplId
::
get
();
if
(
!
pId
)
return
rID
.
getImplementationId
();
{
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
!
pId
)
{
static
::
cppu
::
OImplementationId
aId
;
pId
=
&
aId
;
}
}
return
pId
->
getImplementationId
();
}
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment