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
5c90069d
Kaydet (Commit)
5c90069d
authored
Eki 13, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326211 Unchecked dynamic_cast
Change-Id: I09892b8e17aacf32db51764d8fd766603a8542e1
üst
95ddc77f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
navigatr.cxx
sd/source/ui/dlg/navigatr.cxx
+4
-6
No files found.
sd/source/ui/dlg/navigatr.cxx
Dosyayı görüntüle @
5c90069d
...
...
@@ -871,9 +871,8 @@ void SdNavigatorControllerItem::StateChanged( sal_uInt16 nSId,
{
if
(
eState
>=
SfxItemState
::
DEFAULT
&&
nSId
==
SID_NAVIGATOR_STATE
)
{
const
SfxUInt32Item
*
pStateItem
=
dynamic_cast
<
const
SfxUInt32Item
*
>
(
pItem
);
DBG_ASSERT
(
pStateItem
,
"SfxUInt16Item expected"
);
sal_uInt32
nState
=
pStateItem
->
GetValue
();
const
SfxUInt32Item
&
rStateItem
=
dynamic_cast
<
const
SfxUInt32Item
&>
(
*
pItem
);
sal_uInt32
nState
=
rStateItem
.
GetValue
();
// pen
if
(
nState
&
NAVBTN_PEN_DISABLED
&&
...
...
@@ -955,9 +954,8 @@ void SdPageNameControllerItem::StateChanged( sal_uInt16 nSId,
NavDocInfo
*
pInfo
=
pNavigatorWin
->
GetDocInfo
();
if
(
pInfo
&&
pInfo
->
IsActive
()
)
{
const
SfxStringItem
*
pStateItem
=
dynamic_cast
<
const
SfxStringItem
*>
(
pItem
);
DBG_ASSERT
(
pStateItem
,
"SfxStringItem expected"
);
OUString
aPageName
=
pStateItem
->
GetValue
();
const
SfxStringItem
&
rStateItem
=
dynamic_cast
<
const
SfxStringItem
&>
(
*
pItem
);
OUString
aPageName
=
rStateItem
.
GetValue
();
if
(
!
pNavigatorWin
->
maTlbObjects
->
HasSelectedChildren
(
aPageName
)
)
{
...
...
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