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
44d24455
Kaydet (Commit)
44d24455
authored
Nis 03, 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
c0e0ae54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
lbenv.cxx
cppu/source/uno/lbenv.cxx
+17
-10
No files found.
cppu/source/uno/lbenv.cxx
Dosyayı görüntüle @
44d24455
...
@@ -825,14 +825,14 @@ extern "C" void SAL_CALL uno_dumpEnvironmentByName(
...
@@ -825,14 +825,14 @@ extern "C" void SAL_CALL uno_dumpEnvironmentByName(
}
}
}
}
//------------------------------------------------------------------------------
namespace
inline
static
const
OUString
&
unoenv_getStaticOIdPart
()
{
{
static
OUString
*
s_pStaticOidPart
=
0
;
class
makeOIdPart
if
(
!
s_pStaticOidPart
)
{
{
::
osl
::
MutexGuard
guard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
private
:
if
(
!
s_pStaticOidPart
)
OUString
m_sOidPart
;
public
:
makeOIdPart
()
{
{
::
rtl
::
OUStringBuffer
aRet
(
64
);
::
rtl
::
OUStringBuffer
aRet
(
64
);
aRet
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"];"
)
);
aRet
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"];"
)
);
...
@@ -856,11 +856,18 @@ inline static const OUString & unoenv_getStaticOIdPart()
...
@@ -856,11 +856,18 @@ inline static const OUString & unoenv_getStaticOIdPart()
for
(
sal_Int32
i
=
0
;
i
<
16
;
++
i
)
for
(
sal_Int32
i
=
0
;
i
<
16
;
++
i
)
aRet
.
append
(
(
sal_Int32
)
ar
[
i
],
16
);
aRet
.
append
(
(
sal_Int32
)
ar
[
i
],
16
);
static
OUString
s_aStaticOidPart
(
aRet
.
makeStringAndClear
()
);
m_sOidPart
=
aRet
.
makeStringAndClear
();
s_pStaticOidPart
=
&
s_aStaticOidPart
;
}
}
}
const
OUString
&
getOIdPart
()
const
{
return
m_sOidPart
;
}
return
*
s_pStaticOidPart
;
};
class
theStaticOIdPart
:
public
rtl
::
Static
<
makeOIdPart
,
theStaticOIdPart
>
{};
}
//------------------------------------------------------------------------------
inline
static
const
OUString
&
unoenv_getStaticOIdPart
()
{
return
theStaticOIdPart
::
get
().
getOIdPart
();
}
}
extern
"C"
extern
"C"
...
...
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