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
079e5765
Kaydet (Commit)
079e5765
authored
Haz 04, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#982645 bMissingDefaultsToNormal is always true
Change-Id: Ica58be0b5512eb8f386e51ec6e84d0ec09c3027f
üst
cc93bcf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
PresenterBitmapContainer.cxx
sdext/source/presenter/PresenterBitmapContainer.cxx
+5
-7
PresenterBitmapContainer.hxx
sdext/source/presenter/PresenterBitmapContainer.hxx
+2
-4
No files found.
sdext/source/presenter/PresenterBitmapContainer.cxx
Dosyayı görüntüle @
079e5765
...
@@ -334,15 +334,13 @@ PresenterBitmapContainer::BitmapDescriptor::BitmapDescriptor (
...
@@ -334,15 +334,13 @@ PresenterBitmapContainer::BitmapDescriptor::BitmapDescriptor (
}
}
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
PresenterBitmapContainer
::
BitmapDescriptor
::
GetNormalBitmap
(
void
)
const
PresenterBitmapContainer
::
BitmapDescriptor
::
GetNormalBitmap
(
)
const
{
{
return
mxNormalBitmap
;
return
mxNormalBitmap
;
}
}
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
PresenterBitmapContainer
::
BitmapDescriptor
::
GetBitmap
(
PresenterBitmapContainer
::
BitmapDescriptor
::
GetBitmap
(
const
Mode
eMode
)
const
const
Mode
eMode
,
const
bool
bMissingDefaultsToNormal
)
const
{
{
switch
(
eMode
)
switch
(
eMode
)
{
{
...
@@ -353,19 +351,19 @@ css::uno::Reference<css::rendering::XBitmap>
...
@@ -353,19 +351,19 @@ css::uno::Reference<css::rendering::XBitmap>
case
MouseOver
:
case
MouseOver
:
if
(
mxMouseOverBitmap
.
is
())
if
(
mxMouseOverBitmap
.
is
())
return
mxMouseOverBitmap
;
return
mxMouseOverBitmap
;
else
if
(
bMissingDefaultsToNormal
)
else
return
mxNormalBitmap
;
return
mxNormalBitmap
;
case
ButtonDown
:
case
ButtonDown
:
if
(
mxButtonDownBitmap
.
is
())
if
(
mxButtonDownBitmap
.
is
())
return
mxButtonDownBitmap
;
return
mxButtonDownBitmap
;
else
if
(
bMissingDefaultsToNormal
)
else
return
mxNormalBitmap
;
return
mxNormalBitmap
;
case
Disabled
:
case
Disabled
:
if
(
mxDisabledBitmap
.
is
())
if
(
mxDisabledBitmap
.
is
())
return
mxDisabledBitmap
;
return
mxDisabledBitmap
;
else
if
(
bMissingDefaultsToNormal
)
else
return
mxNormalBitmap
;
return
mxNormalBitmap
;
case
Mask
:
case
Mask
:
...
...
sdext/source/presenter/PresenterBitmapContainer.hxx
Dosyayı görüntüle @
079e5765
...
@@ -53,10 +53,8 @@ public:
...
@@ -53,10 +53,8 @@ public:
BitmapDescriptor
(
const
::
boost
::
shared_ptr
<
BitmapDescriptor
>&
rpDefault
);
BitmapDescriptor
(
const
::
boost
::
shared_ptr
<
BitmapDescriptor
>&
rpDefault
);
enum
Mode
{
Normal
,
MouseOver
,
ButtonDown
,
Disabled
,
Mask
};
enum
Mode
{
Normal
,
MouseOver
,
ButtonDown
,
Disabled
,
Mask
};
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
GetNormalBitmap
(
void
)
const
;
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
GetNormalBitmap
()
const
;
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
GetBitmap
(
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>
GetBitmap
(
const
Mode
eMode
)
const
;
const
Mode
eMode
,
const
bool
bMissingDefaultsToNormal
=
true
)
const
;
void
SetBitmap
(
void
SetBitmap
(
const
Mode
eMode
,
const
Mode
eMode
,
const
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>&
rxBitmap
);
const
css
::
uno
::
Reference
<
css
::
rendering
::
XBitmap
>&
rxBitmap
);
...
...
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