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
cf52cc9a
Kaydet (Commit)
cf52cc9a
authored
Ock 15, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in AsynchronLink
Change-Id: I911bb1f8ca98e368f8275083936a8eb9013f462c
üst
d72a2899
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
asynclink.hxx
include/svtools/asynclink.hxx
+3
-2
asynclink.cxx
svtools/source/control/asynclink.cxx
+3
-3
No files found.
include/svtools/asynclink.hxx
Dosyayı görüntüle @
cf52cc9a
...
...
@@ -24,6 +24,7 @@
#include <tools/solar.h>
#include <tools/link.hxx>
#include <osl/mutex.hxx>
#include <memory>
class
Idle
;
class
Timer
;
...
...
@@ -35,11 +36,11 @@ class SVT_DLLPUBLIC AsynchronLink
{
Link
<
void
*
,
void
>
_aLink
;
ImplSVEvent
*
_nEventId
;
Idle
*
_pIdle
;
std
::
unique_ptr
<
Idle
>
_pIdle
;
bool
_bInCall
;
bool
*
_pDeleted
;
void
*
_pArg
;
::
osl
::
Mutex
*
_pMutex
;
std
::
unique_ptr
<::
osl
::
Mutex
>
_pMutex
;
DECL_DLLPRIVATE_LINK
(
HandleCall_Idle
,
Timer
*
,
void
);
DECL_DLLPRIVATE_LINK
(
HandleCall_PostUserEvent
,
void
*
,
void
);
...
...
svtools/source/control/asynclink.cxx
Dosyayı görüntüle @
cf52cc9a
...
...
@@ -30,7 +30,7 @@ namespace svtools {
void
AsynchronLink
::
CreateMutex
()
{
if
(
!
_pMutex
)
_pMutex
=
new
osl
::
Mutex
;
if
(
!
_pMutex
)
_pMutex
.
reset
(
new
osl
::
Mutex
)
;
}
void
AsynchronLink
::
Call
(
void
*
pObj
,
bool
bAllowDoubles
)
...
...
@@ -55,9 +55,9 @@ AsynchronLink::~AsynchronLink()
{
Application
::
RemoveUserEvent
(
_nEventId
);
}
delete
_pIdle
;
_pIdle
.
reset
()
;
if
(
_pDeleted
)
*
_pDeleted
=
true
;
delete
_pMutex
;
_pMutex
.
reset
()
;
}
IMPL_LINK_NOARG
(
AsynchronLink
,
HandleCall_Idle
,
Timer
*
,
void
)
...
...
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