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
d7253e61
Kaydet (Commit)
d7253e61
authored
May 26, 2014
tarafından
Caolán McNamara
Kaydeden (comit)
Fridrich Štrba
May 28, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704674 Unchecked dynamic_cast
Change-Id: I4432ad08fe149e299933443fb6f1c6afc0746cf5
üst
55f6eb27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
chgtrack.cxx
sc/source/core/tool/chgtrack.cxx
+7
-9
No files found.
sc/source/core/tool/chgtrack.cxx
Dosyayı görüntüle @
d7253e61
...
...
@@ -4432,15 +4432,14 @@ ScChangeTrack* ScChangeTrack::Clone( ScDocument* pDocument ) const
{
pGenerated
=
aGeneratedStack
.
top
();
aGeneratedStack
.
pop
();
const
ScChangeActionContent
*
pContent
=
dynamic_cast
<
const
ScChangeActionContent
*
>
(
pGenerated
);
OSL_ENSURE
(
pContent
,
"ScChangeTrack::Clone: pContent is null!"
);
const
ScCellValue
&
rNewCell
=
pContent
->
GetNewCell
();
const
ScChangeActionContent
&
rContent
=
dynamic_cast
<
const
ScChangeActionContent
&>
(
*
pGenerated
);
const
ScCellValue
&
rNewCell
=
rContent
.
GetNewCell
();
if
(
!
rNewCell
.
isEmpty
())
{
ScCellValue
aClonedNewCell
;
aClonedNewCell
.
assign
(
rNewCell
,
*
pDocument
);
OUString
aNewValue
;
pContent
->
GetNewString
(
aNewValue
,
pDocument
);
rContent
.
GetNewString
(
aNewValue
,
pDocument
);
pClonedTrack
->
nGeneratedMin
=
pGenerated
->
GetActionNumber
()
+
1
;
pClonedTrack
->
AddLoadedGenerated
(
aClonedNewCell
,
pGenerated
->
GetBigRange
(),
aNewValue
);
}
...
...
@@ -4519,13 +4518,12 @@ ScChangeTrack* ScChangeTrack::Clone( ScDocument* pDocument ) const
break
;
case
SC_CAT_CONTENT
:
{
const
ScChangeActionContent
*
pContent
=
dynamic_cast
<
const
ScChangeActionContent
*
>
(
pAction
);
OSL_ENSURE
(
pContent
,
"ScChangeTrack::Clone: pContent is null!"
);
const
ScCellValue
&
rOldCell
=
pContent
->
GetOldCell
();
const
ScChangeActionContent
&
rContent
=
dynamic_cast
<
const
ScChangeActionContent
&>
(
*
pAction
);
const
ScCellValue
&
rOldCell
=
rContent
.
GetOldCell
();
ScCellValue
aClonedOldCell
;
aClonedOldCell
.
assign
(
rOldCell
,
*
pDocument
);
OUString
aOldValue
;
pContent
->
GetOldString
(
aOldValue
,
pDocument
);
rContent
.
GetOldString
(
aOldValue
,
pDocument
);
ScChangeActionContent
*
pClonedContent
=
new
ScChangeActionContent
(
pAction
->
GetActionNumber
(),
...
...
@@ -4539,7 +4537,7 @@ ScChangeTrack* ScChangeTrack::Clone( ScDocument* pDocument ) const
pDocument
,
aOldValue
);
const
ScCellValue
&
rNewCell
=
pContent
->
GetNewCell
();
const
ScCellValue
&
rNewCell
=
rContent
.
GetNewCell
();
if
(
!
rNewCell
.
isEmpty
())
{
ScCellValue
aClonedNewCell
;
...
...
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