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
dd7b477e
Kaydet (Commit)
dd7b477e
authored
Mar 20, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Access safe members directly
Change-Id: Ib1195f4704de845448e280fabbe40580de46a97d
üst
4f843f2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
30 deletions
+7
-30
statusindicator.hxx
framework/inc/helper/statusindicator.hxx
+1
-3
statusindicator.cxx
framework/source/helper/statusindicator.cxx
+6
-27
No files found.
framework/inc/helper/statusindicator.hxx
Dosyayı görüntüle @
dd7b477e
...
...
@@ -24,7 +24,6 @@
// include files of own module
#include <helper/statusindicatorfactory.hxx>
#include <threadhelp/threadhelpbase.hxx>
#include <macros/xinterface.hxx>
#include <macros/xtypeprovider.hxx>
#include <macros/generic.hxx>
...
...
@@ -59,8 +58,7 @@ namespace framework{
@devstatus ready to use
@threadsafe yes
*/
class
StatusIndicator
:
private
ThreadHelpBase
// Order of baseclasses is necessary for right initializaton!
,
public
::
cppu
::
WeakImplHelper1
<
css
::
task
::
XStatusIndicator
>
class
StatusIndicator
:
public
::
cppu
::
WeakImplHelper1
<
css
::
task
::
XStatusIndicator
>
{
// member
...
...
framework/source/helper/statusindicator.cxx
Dosyayı görüntüle @
dd7b477e
...
...
@@ -28,8 +28,7 @@ namespace framework{
StatusIndicator
::
StatusIndicator
(
StatusIndicatorFactory
*
pFactory
)
:
ThreadHelpBase
(
)
,
m_xFactory
(
pFactory
)
:
m_xFactory
(
pFactory
)
{
}
...
...
@@ -47,11 +46,7 @@ void SAL_CALL StatusIndicator::start(const OUString& sText ,
(
void
)
sText
;
(
void
)
nRange
;
#else
// SAFE ->
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
.
get
(),
css
::
uno
::
UNO_QUERY
);
aReadLock
.
unlock
();
// <- SAFE
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
);
if
(
xFactory
.
is
())
{
StatusIndicatorFactory
*
pFactory
=
(
StatusIndicatorFactory
*
)
xFactory
.
get
();
...
...
@@ -65,11 +60,7 @@ void SAL_CALL StatusIndicator::end()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
#if HAVE_FEATURE_DESKTOP
// SAFE ->
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
.
get
(),
css
::
uno
::
UNO_QUERY
);
aReadLock
.
unlock
();
// <- SAFE
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
);
if
(
xFactory
.
is
())
{
StatusIndicatorFactory
*
pFactory
=
(
StatusIndicatorFactory
*
)
xFactory
.
get
();
...
...
@@ -83,11 +74,7 @@ void SAL_CALL StatusIndicator::reset()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
#if HAVE_FEATURE_DESKTOP
// SAFE ->
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
.
get
(),
css
::
uno
::
UNO_QUERY
);
aReadLock
.
unlock
();
// <- SAFE
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
);
if
(
xFactory
.
is
())
{
StatusIndicatorFactory
*
pFactory
=
(
StatusIndicatorFactory
*
)
xFactory
.
get
();
...
...
@@ -103,11 +90,7 @@ void SAL_CALL StatusIndicator::setText(const OUString& sText)
#if !HAVE_FEATURE_DESKTOP
(
void
)
sText
;
#else
// SAFE ->
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
.
get
(),
css
::
uno
::
UNO_QUERY
);
aReadLock
.
unlock
();
// <- SAFE
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
);
if
(
xFactory
.
is
())
{
StatusIndicatorFactory
*
pFactory
=
(
StatusIndicatorFactory
*
)
xFactory
.
get
();
...
...
@@ -123,11 +106,7 @@ void SAL_CALL StatusIndicator::setValue(sal_Int32 nValue)
#if !HAVE_FEATURE_DESKTOP
(
void
)
nValue
;
#else
// SAFE ->
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
.
get
(),
css
::
uno
::
UNO_QUERY
);
aReadLock
.
unlock
();
// <- SAFE
css
::
uno
::
Reference
<
css
::
task
::
XStatusIndicatorFactory
>
xFactory
(
m_xFactory
);
if
(
xFactory
.
is
())
{
StatusIndicatorFactory
*
pFactory
=
(
StatusIndicatorFactory
*
)
xFactory
.
get
();
...
...
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