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
af277041
Kaydet (Commit)
af277041
authored
Mar 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I7d98f0d3f101d7441e83d37f0ee36a74b991a996
üst
8150f506
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
39 deletions
+3
-39
UndoManager.java
sfx2/qa/complex/sfx2/UndoManager.java
+1
-1
backingcomp.cxx
sfx2/source/dialog/backingcomp.cxx
+1
-14
sfxbasemodel.cxx
sfx2/source/doc/sfxbasemodel.cxx
+1
-24
No files found.
sfx2/qa/complex/sfx2/UndoManager.java
Dosyayı görüntüle @
af277041
...
...
@@ -1435,7 +1435,7 @@ public class UndoManager
public
byte
[]
getImplementationId
()
{
return
getClass
().
toString
().
getBytes
()
;
return
new
byte
[
0
]
;
}
}
...
...
sfx2/source/dialog/backingcomp.cxx
Dosyayı görüntüle @
af277041
...
...
@@ -299,20 +299,7 @@ css::uno::Sequence< css::uno::Type > SAL_CALL BackingComp::getTypes()
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
BackingComp
::
getImplementationId
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
::
cppu
::
OImplementationId
*
pID
=
NULL
;
if
(
!
pID
)
{
/* GLOBAL SAFE { */
::
osl
::
MutexGuard
aLock
(
::
osl
::
Mutex
::
getGlobalMutex
());
// Control these pointer again ... it can be, that another instance will be faster then this one!
if
(
!
pID
)
{
static
::
cppu
::
OImplementationId
aID
(
false
);
pID
=
&
aID
;
}
/* } GLOBAL SAFE */
}
return
pID
->
getImplementationId
();
return
css
::
uno
::
Sequence
<
sal_Int8
>
();
}
OUString
SAL_CALL
BackingComp
::
getImplementationName
()
...
...
sfx2/source/doc/sfxbasemodel.cxx
Dosyayı görüntüle @
af277041
...
...
@@ -615,30 +615,7 @@ Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException,
Sequence
<
sal_Int8
>
SAL_CALL
SfxBaseModel
::
getImplementationId
()
throw
(
RuntimeException
,
std
::
exception
)
{
// Create one Id for all instances of this class.
// Use ethernet address to do this! (sal_True)
// Optimize this method
// We initialize a static variable only one time. And we don't must use a mutex at every call!
// For the first call; pID is NULL - for the second call pID is different from NULL!
static
::
cppu
::
OImplementationId
*
pID
=
NULL
;
if
(
pID
==
NULL
)
{
// Ready for multithreading; get global mutex for first call of this method only! see before
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
)
;
// Control these pointer again ... it can be, that another instance will be faster then these!
if
(
pID
==
NULL
)
{
// Create a new static ID ...
static
::
cppu
::
OImplementationId
aID
(
false
)
;
// ... and set his address to static pointer!
pID
=
&
aID
;
}
}
return
pID
->
getImplementationId
()
;
return
css
::
uno
::
Sequence
<
sal_Int8
>
();
}
...
...
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