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
1bc19605
Kaydet (Commit)
1bc19605
authored
Agu 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1158079 Unchecked dynamic_cast
Change-Id: Iab2c78af7dcf967ccdf5016266324c805856af0b
üst
9d22ab17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
thints.cxx
sw/source/core/txtnode/thints.cxx
+2
-2
No files found.
sw/source/core/txtnode/thints.cxx
Dosyayı görüntüle @
1bc19605
...
...
@@ -1036,13 +1036,13 @@ SwTxtAttr* MakeTxtAttr(
case
RES_TXTATR_ANNOTATION
:
{
pNew
=
new
SwTxtAnnotationFld
(
static_cast
<
SwFmtFld
&>
(
rNew
),
nStt
,
rDoc
.
IsClipBoard
()
);
if
(
bIsCopy
==
COPY
)
if
(
bIsCopy
==
COPY
)
{
// On copy of the annotation field do not keep the annotated text range by removing
// the relation to its annotation mark (relation established via annotation field's name).
// If the annotation mark is also copied, the relation and thus the annotated text range will be reestablished,
// when the annotation mark is created and inserted into the document.
const_cast
<
SwPostItField
*>
(
dynamic_cast
<
const
SwPostItField
*
>
(
pNew
->
GetFmtFld
().
GetField
()))
->
SetName
(
OUString
()
);
const_cast
<
SwPostItField
&>
(
dynamic_cast
<
const
SwPostItField
&>
(
*
(
pNew
->
GetFmtFld
().
GetField
()))).
SetName
(
OUString
()
);
}
}
break
;
...
...
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