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
014a0e5d
Kaydet (Commit)
014a0e5d
authored
Ock 19, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1132660 Dereference after null check
Change-Id: Ib184d73f2ced3beca8540a37bab74c4a712170ba
üst
989c7ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
accessiblelistboxentry.cxx
accessibility/source/extended/accessiblelistboxentry.cxx
+13
-16
No files found.
accessibility/source/extended/accessiblelistboxentry.cxx
Dosyayı görüntüle @
014a0e5d
...
@@ -427,32 +427,29 @@ namespace accessibility
...
@@ -427,32 +427,29 @@ namespace accessibility
return
AccessibleRole
::
TREE_ITEM
;
return
AccessibleRole
::
TREE_ITEM
;
else
if
(
nType
==
TREEBOX_ALLITEM_ACCROLE_TYPE_LIST
)
else
if
(
nType
==
TREEBOX_ALLITEM_ACCROLE_TYPE_LIST
)
return
AccessibleRole
::
LIST_ITEM
;
return
AccessibleRole
::
LIST_ITEM
;
}
sal_uInt16
treeFlag
=
pBox
->
GetTreeFlags
();
sal_uInt16
treeFlag
=
pBox
->
GetTreeFlags
();
if
(
treeFlag
&
TREEFLAG_CHKBTN
)
if
(
treeFlag
&
TREEFLAG_CHKBTN
)
{
SvTreeListEntry
*
pEntry
=
pBox
->
GetEntryFromPath
(
m_aEntryPath
);
SvButtonState
eState
=
pBox
->
GetCheckButtonState
(
pEntry
);
switch
(
eState
)
{
{
SvTreeListEntry
*
pEntry
=
pBox
->
GetEntryFromPath
(
m_aEntryPath
);
SvButtonState
eState
=
pBox
->
GetCheckButtonState
(
pEntry
);
switch
(
eState
)
{
case
SV_BUTTON_CHECKED
:
case
SV_BUTTON_CHECKED
:
case
SV_BUTTON_UNCHECKED
:
case
SV_BUTTON_UNCHECKED
:
return
AccessibleRole
::
CHECK_BOX
;
return
AccessibleRole
::
CHECK_BOX
;
case
SV_BUTTON_TRISTATE
:
case
SV_BUTTON_TRISTATE
:
default
:
default
:
return
AccessibleRole
::
LABEL
;
return
AccessibleRole
::
LABEL
;
}
}
}
if
(
getRoleType
()
==
0
)
return
AccessibleRole
::
LIST_ITEM
;
else
//o is: return AccessibleRole::LABEL;
return
AccessibleRole
::
TREE_ITEM
;
}
}
else
return
AccessibleRole
::
UNKNOWN
;
{
if
(
getRoleType
()
==
0
)
return
AccessibleRole
::
LIST_ITEM
;
else
//o is: return AccessibleRole::LABEL;
return
AccessibleRole
::
TREE_ITEM
;
}
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
OUString
SAL_CALL
AccessibleListBoxEntry
::
getAccessibleDescription
(
)
throw
(
RuntimeException
)
OUString
SAL_CALL
AccessibleListBoxEntry
::
getAccessibleDescription
(
)
throw
(
RuntimeException
)
...
...
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