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
093c4ee9
Kaydet (Commit)
093c4ee9
authored
Eki 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735864 Unchecked dynamic_cast
Change-Id: I669ffab93976a61321f471586256fb52c9bd3451
üst
72dff798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
filtnav.cxx
svx/source/form/filtnav.cxx
+5
-4
No files found.
svx/source/form/filtnav.cxx
Dosyayı görüntüle @
093c4ee9
...
...
@@ -424,8 +424,9 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th
const
sal_Int32
nActiveTerm
(
xFilterController
->
getActiveTerm
()
);
FmFilterItems
*
pFilter
=
dynamic_cast
<
FmFilterItems
*>
(
pFormItem
->
GetChildren
()[
nActiveTerm
]
);
FmFilterItem
*
pFilterItem
=
pFilter
->
Find
(
_Event
.
FilterComponent
);
FmFilterData
*
pData
=
pFormItem
->
GetChildren
()[
nActiveTerm
];
FmFilterItems
&
rFilter
=
dynamic_cast
<
FmFilterItems
&>
(
*
pData
);
FmFilterItem
*
pFilterItem
=
rFilter
.
Find
(
_Event
.
FilterComponent
);
if
(
pFilterItem
)
{
if
(
!
_Event
.
PredicateExpression
.
isEmpty
())
...
...
@@ -446,8 +447,8 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th
// searching the component by field name
OUString
aFieldName
(
lcl_getLabelName_nothrow
(
xFilterController
->
getFilterComponent
(
_Event
.
FilterComponent
)
)
);
pFilterItem
=
new
FmFilterItem
(
pFilter
,
aFieldName
,
_Event
.
PredicateExpression
,
_Event
.
FilterComponent
);
m_pModel
->
Insert
(
pFilter
->
GetChildren
().
end
(),
pFilterItem
);
pFilterItem
=
new
FmFilterItem
(
&
rFilter
,
aFieldName
,
_Event
.
PredicateExpression
,
_Event
.
FilterComponent
);
m_pModel
->
Insert
(
rFilter
.
GetChildren
().
end
(),
pFilterItem
);
}
// ensure there's one empty term in the filter, just in case the active term was previously empty
...
...
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