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
5496f2a3
Kaydet (Commit)
5496f2a3
authored
Eyl 15, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I8275f9a100e5ed93f44596fe428a39e902c12dfc
üst
3368bca3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
svapp.hxx
include/vcl/svapp.hxx
+2
-2
itemdel.cxx
sfx2/source/control/itemdel.cxx
+4
-5
idlemgr.hxx
vcl/inc/idlemgr.hxx
+2
-2
idlemgr.cxx
vcl/source/app/idlemgr.cxx
+5
-5
svapp.cxx
vcl/source/app/svapp.cxx
+2
-2
No files found.
include/vcl/svapp.hxx
Dosyayı görüntüle @
5496f2a3
...
...
@@ -872,13 +872,13 @@ public:
@return true if the handler was inserted successfully, false if it couldn't be inserted.
*/
static
bool
InsertIdleHdl
(
const
Link
<>&
rLink
,
sal_uInt16
nPriority
);
static
bool
InsertIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
,
sal_uInt16
nPriority
);
/** Remove an idle handler from the application.
@param rLink const reference to the idle handler to remove
*/
static
void
RemoveIdleHdl
(
const
Link
<>&
rLink
);
static
void
RemoveIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
);
/*** Get the DisplayConnection.
...
...
sfx2/source/control/itemdel.cxx
Dosyayı görüntüle @
5496f2a3
...
...
@@ -30,11 +30,11 @@
class
SfxItemDisruptor_Impl
:
private
boost
::
noncopyable
{
SfxPoolItem
*
pItem
;
Link
<
>
aLink
;
SfxPoolItem
*
pItem
;
Link
<
Application
*
,
void
>
aLink
;
private
:
DECL_LINK
(
Delete
,
void
*
);
DECL_LINK
_TYPED
(
Delete
,
Application
*
,
void
);
public
:
SfxItemDisruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
);
...
...
@@ -69,10 +69,9 @@ SfxItemDisruptor_Impl::~SfxItemDisruptor_Impl()
delete
pItem
;
}
IMPL_LINK_NOARG
(
SfxItemDisruptor_Impl
,
Delete
)
IMPL_LINK_NOARG
_TYPED
(
SfxItemDisruptor_Impl
,
Delete
,
Application
*
,
void
)
{
delete
this
;
return
0
;
}
void
DeleteItemOnIdle
(
SfxPoolItem
*
pItem
)
...
...
vcl/inc/idlemgr.hxx
Dosyayı görüntüle @
5496f2a3
...
...
@@ -37,8 +37,8 @@ public:
ImplIdleMgr
();
~
ImplIdleMgr
();
bool
InsertIdleHdl
(
const
Link
<>&
rLink
,
sal_uInt16
nPriority
);
void
RemoveIdleHdl
(
const
Link
<>&
rLink
);
bool
InsertIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
,
sal_uInt16
nPriority
);
void
RemoveIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
);
void
RestartIdler
()
{
if
(
maTimer
.
IsActive
()
)
maTimer
.
Start
();
}
...
...
vcl/source/app/idlemgr.cxx
Dosyayı görüntüle @
5496f2a3
...
...
@@ -23,9 +23,9 @@
struct
ImplIdleData
{
Link
<
>
maIdleHdl
;
sal_uInt16
mnPriority
;
bool
mbTimeout
;
Link
<
Application
*
,
void
>
maIdleHdl
;
sal_uInt16
mnPriority
;
bool
mbTimeout
;
};
#define IMPL_IDLETIMEOUT 350
...
...
@@ -52,7 +52,7 @@ ImplIdleMgr::~ImplIdleMgr()
delete
mpIdleList
;
}
bool
ImplIdleMgr
::
InsertIdleHdl
(
const
Link
<>&
rLink
,
sal_uInt16
nPriority
)
bool
ImplIdleMgr
::
InsertIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
,
sal_uInt16
nPriority
)
{
size_t
nPos
=
(
size_t
)
-
1
;
size_t
n
=
mpIdleList
->
size
();
...
...
@@ -86,7 +86,7 @@ bool ImplIdleMgr::InsertIdleHdl( const Link<>& rLink, sal_uInt16 nPriority )
return
true
;
}
void
ImplIdleMgr
::
RemoveIdleHdl
(
const
Link
<>&
rLink
)
void
ImplIdleMgr
::
RemoveIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
)
{
if
(
mbInDestruction
)
return
;
...
...
vcl/source/app/svapp.cxx
Dosyayı görüntüle @
5496f2a3
...
...
@@ -930,7 +930,7 @@ void Application::RemoveUserEvent( ImplSVEvent * nUserEvent )
}
}
bool
Application
::
InsertIdleHdl
(
const
Link
<>&
rLink
,
sal_uInt16
nPrio
)
bool
Application
::
InsertIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
,
sal_uInt16
nPrio
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
...
@@ -941,7 +941,7 @@ bool Application::InsertIdleHdl( const Link<>& rLink, sal_uInt16 nPrio )
return
pSVData
->
maAppData
.
mpIdleMgr
->
InsertIdleHdl
(
rLink
,
nPrio
);
}
void
Application
::
RemoveIdleHdl
(
const
Link
<>&
rLink
)
void
Application
::
RemoveIdleHdl
(
const
Link
<
Application
*
,
void
>&
rLink
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
...
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