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
ddd4a787
Kaydet (Commit)
ddd4a787
authored
Ock 22, 2015
tarafından
Tobias Madl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Idle: Inserted static cast
Change-Id: I4cfbb53763001854d37fbcd304e77e65279173b6
üst
0e10b343
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
35 deletions
+10
-35
idle.hxx
include/vcl/idle.hxx
+8
-33
idle.cxx
vcl/source/app/idle.cxx
+2
-2
No files found.
include/vcl/idle.hxx
Dosyayı görüntüle @
ddd4a787
...
...
@@ -28,41 +28,16 @@ struct ImplIdleData;
struct
ImplSVData
;
enum
class
IdlePriority
{
VCL_IDLE_PRIORITY_HIGHEST
,
VCL_IDLE_PRIORITY_HIGH
,
VCL_IDLE_PRIORITY_REPAINT
,
VCL_IDLE_PRIORITY_RESIZE
,
VCL_IDLE_PRIORITY_MEDIUM
,
VCL_IDLE_PRIORITY_LOW
,
VCL_IDLE_PRIORITY_LOWER
,
VCL_IDLE_PRIORITY_LOWEST
VCL_IDLE_PRIORITY_HIGHEST
=
0
,
VCL_IDLE_PRIORITY_HIGH
=
1
,
VCL_IDLE_PRIORITY_REPAINT
=
2
,
VCL_IDLE_PRIORITY_RESIZE
=
3
,
VCL_IDLE_PRIORITY_MEDIUM
=
3
,
VCL_IDLE_PRIORITY_LOW
=
4
,
VCL_IDLE_PRIORITY_LOWER
=
5
,
VCL_IDLE_PRIORITY_LOWEST
=
6
};
inline
sal_Int32
convertToInt
(
IdlePriority
ePriority
)
{
switch
(
ePriority
)
{
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_HIGHEST
:
return
0
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_HIGH
:
return
1
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_REPAINT
:
return
2
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_RESIZE
:
return
3
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_MEDIUM
:
return
3
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_LOW
:
return
4
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_LOWER
:
return
5
;
case
IdlePriority
:
:
VCL_IDLE_PRIORITY_LOWEST
:
return
6
;
}
return
42
;
// Should not happen
}
class
VCL_DLLPUBLIC
Idle
{
protected
:
...
...
vcl/source/app/idle.cxx
Dosyayı görüntüle @
ddd4a787
...
...
@@ -36,7 +36,7 @@ struct ImplIdleData
if
(
mbDelete
||
mbInIdle
)
return
;
mpIdle
->
SetSchedulingPriority
(
convertToInt
(
mpIdle
->
GetDefaultPriority
()));
mpIdle
->
SetSchedulingPriority
(
static_cast
<
sal_Int32
>
(
mpIdle
->
GetDefaultPriority
()));
mbDelete
=
true
;
mpIdle
->
mbActive
=
false
;
...
...
@@ -208,7 +208,7 @@ Idle& Idle::operator=( const Idle& rIdle )
Idle
::
Idle
()
:
mpIdleData
(
NULL
),
miPriority
(
convertToInt
(
IdlePriority
::
VCL_IDLE_PRIORITY_HIGH
)),
miPriority
(
static_cast
<
sal_Int32
>
(
IdlePriority
::
VCL_IDLE_PRIORITY_HIGH
)),
meDefaultPriority
(
IdlePriority
::
VCL_IDLE_PRIORITY_HIGH
),
mbActive
(
false
)
{
...
...
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