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
b50c4385
Kaydet (Commit)
b50c4385
authored
Ara 25, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1426945 Unchecked dynamic_cast
Change-Id: I6c3d84a0fb1b4332f78a1c0ca04c9a7700b53c90
üst
826cf6f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
docfmt.cxx
sw/source/core/doc/docfmt.cxx
+3
-4
No files found.
sw/source/core/doc/docfmt.cxx
Dosyayı görüntüle @
b50c4385
...
...
@@ -1027,10 +1027,9 @@ static bool lcl_SetTextFormatColl( const SwNodePtr& rpNode, void* pArgs )
{
// Check, if the list style of the paragraph will change.
bool
bChangeOfListStyleAtParagraph
(
true
);
SwTextNode
*
pTNd
(
dynamic_cast
<
SwTextNode
*>
(
pCNd
)
);
OSL_ENSURE
(
pTNd
,
"<lcl_SetTextFormatColl(..)> - text node expected -> crash"
);
SwTextNode
&
rTNd
(
dynamic_cast
<
SwTextNode
&>
(
*
pCNd
));
{
SwNumRule
*
pNumRuleAtParagraph
(
pTNd
->
GetNumRule
()
);
SwNumRule
*
pNumRuleAtParagraph
(
rTNd
.
GetNumRule
()
);
if
(
pNumRuleAtParagraph
)
{
const
SwNumRuleItem
&
rNumRuleItemAtParagraphStyle
=
...
...
@@ -1048,7 +1047,7 @@ static bool lcl_SetTextFormatColl( const SwNodePtr& rpNode, void* pArgs )
std
::
unique_ptr
<
SwRegHistory
>
pRegH
;
if
(
pPara
->
pHistory
)
{
pRegH
.
reset
(
new
SwRegHistory
(
pTNd
,
*
pTNd
,
pPara
->
pHistory
)
);
pRegH
.
reset
(
new
SwRegHistory
(
&
rTNd
,
rTNd
,
pPara
->
pHistory
)
);
}
pCNd
->
ResetAttr
(
RES_PARATR_NUMRULE
);
...
...
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