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
92793340
Kaydet (Commit)
92793340
authored
Mar 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
framework: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Id137a35c385a5198243eefb9a42f4deace24e195
üst
2598a15e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
116 deletions
+5
-116
xtypeprovider.hxx
framework/inc/macros/xtypeprovider.hxx
+1
-20
actiontriggercontainer.cxx
framework/source/fwe/classes/actiontriggercontainer.cxx
+1
-24
actiontriggerpropertyset.cxx
framework/source/fwe/classes/actiontriggerpropertyset.cxx
+1
-24
actiontriggerseparatorpropertyset.cxx
.../source/fwe/classes/actiontriggerseparatorpropertyset.cxx
+1
-24
rootactiontriggercontainer.cxx
framework/source/fwe/classes/rootactiontriggercontainer.cxx
+1
-24
No files found.
framework/inc/macros/xtypeprovider.hxx
Dosyayı görüntüle @
92793340
...
...
@@ -56,26 +56,7 @@ ________________________________________________________________________________
#define PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL CLASS::getImplementationId() throw( ::com::sun::star::uno::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>(); \
}
...
...
framework/source/fwe/classes/actiontriggercontainer.cxx
Dosyayı görüntüle @
92793340
...
...
@@ -156,30 +156,7 @@ Sequence< Type > SAL_CALL ActionTriggerContainer::getTypes() throw ( RuntimeExce
Sequence
<
sal_Int8
>
SAL_CALL
ActionTriggerContainer
::
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
>
();
}
}
...
...
framework/source/fwe/classes/actiontriggerpropertyset.cxx
Dosyayı görüntüle @
92793340
...
...
@@ -153,30 +153,7 @@ Sequence< Type > SAL_CALL ActionTriggerPropertySet::getTypes() throw ( RuntimeEx
Sequence
<
sal_Int8
>
SAL_CALL
ActionTriggerPropertySet
::
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
>
();
}
sal_Bool
SAL_CALL
ActionTriggerPropertySet
::
convertFastPropertyValue
(
...
...
framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx
Dosyayı görüntüle @
92793340
...
...
@@ -146,30 +146,7 @@ Sequence< Type > SAL_CALL ActionTriggerSeparatorPropertySet::getTypes() throw (
Sequence
<
sal_Int8
>
SAL_CALL
ActionTriggerSeparatorPropertySet
::
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
>
();
}
sal_Bool
SAL_CALL
ActionTriggerSeparatorPropertySet
::
convertFastPropertyValue
(
...
...
framework/source/fwe/classes/rootactiontriggercontainer.cxx
Dosyayı görüntüle @
92793340
...
...
@@ -281,30 +281,7 @@ Sequence< Type > SAL_CALL RootActionTriggerContainer::getTypes() throw ( Runtime
Sequence
<
sal_Int8
>
SAL_CALL
RootActionTriggerContainer
::
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
>
();
}
// private implementation helper
...
...
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