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
309a2dab
Kaydet (Commit)
309a2dab
authored
May 25, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1158083 Unchecked dynamic_cast
Change-Id: I8213e0c8e6228320c6efcba5e42e58e87e0379b9
üst
eedae044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docbm.cxx
sw/source/core/doc/docbm.cxx
+2
-2
No files found.
sw/source/core/doc/docbm.cxx
Dosyayı görüntüle @
309a2dab
...
@@ -1736,8 +1736,8 @@ void _RestoreCntntIdx(SwDoc* pDoc,
...
@@ -1736,8 +1736,8 @@ void _RestoreCntntIdx(SwDoc* pDoc,
switch
(
aSave
.
GetType
()
)
switch
(
aSave
.
GetType
()
)
{
{
case
0x8000
:
case
0x8000
:
if
(
MarkBase
*
pMark
=
dynamic_cast
<
MarkBase
*>
(
pMarkAccess
->
getAllMarksBegin
()[
aSave
.
GetCount
()].
get
()))
{
{
MarkBase
*
pMark
=
dynamic_cast
<
MarkBase
*>
(
pMarkAccess
->
getAllMarksBegin
()[
aSave
.
GetCount
()].
get
());
SwPosition
aNewPos
(
pMark
->
GetMarkPos
());
SwPosition
aNewPos
(
pMark
->
GetMarkPos
());
aNewPos
.
nNode
=
*
pCNd
;
aNewPos
.
nNode
=
*
pCNd
;
aNewPos
.
nContent
.
Assign
(
pCNd
,
aSave
.
GetContent
()
+
nOffset
);
aNewPos
.
nContent
.
Assign
(
pCNd
,
aSave
.
GetContent
()
+
nOffset
);
...
@@ -1745,8 +1745,8 @@ void _RestoreCntntIdx(SwDoc* pDoc,
...
@@ -1745,8 +1745,8 @@ void _RestoreCntntIdx(SwDoc* pDoc,
}
}
break
;
break
;
case
0x8001
:
case
0x8001
:
if
(
MarkBase
*
pMark
=
dynamic_cast
<
MarkBase
*>
(
pMarkAccess
->
getAllMarksBegin
()[
aSave
.
GetCount
()].
get
()))
{
{
MarkBase
*
pMark
=
dynamic_cast
<
MarkBase
*>
(
pMarkAccess
->
getAllMarksBegin
()[
aSave
.
GetCount
()].
get
());
SwPosition
aNewPos
(
pMark
->
GetOtherMarkPos
());
SwPosition
aNewPos
(
pMark
->
GetOtherMarkPos
());
aNewPos
.
nNode
=
*
pCNd
;
aNewPos
.
nNode
=
*
pCNd
;
aNewPos
.
nContent
.
Assign
(
pCNd
,
aSave
.
GetContent
()
+
nOffset
);
aNewPos
.
nContent
.
Assign
(
pCNd
,
aSave
.
GetContent
()
+
nOffset
);
...
...
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