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
583c9496
Kaydet (Commit)
583c9496
authored
Ara 21, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
c-style cast to const_cast
Change-Id: Ie5d8483305f4ef2d76c291fcb8c707a69ba9cf52
üst
310eb665
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ndindex.hxx
sw/inc/ndindex.hxx
+5
-5
No files found.
sw/inc/ndindex.hxx
Dosyayı görüntüle @
583c9496
...
...
@@ -75,7 +75,7 @@ public:
if
(
nDiff
)
pNd
=
rNd
.
GetNodes
()[
rNd
.
GetIndex
()
+
nDiff
];
else
pNd
=
(
SwNode
*
)
&
rNd
;
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
)
;
RegisterIndex
(
pNd
->
GetNodes
()
);
}
...
...
@@ -277,11 +277,11 @@ SwNodeIndex& SwNodeIndex::operator=( const SwNode& rNd )
if
(
&
pNd
->
GetNodes
()
!=
&
rNd
.
GetNodes
()
)
{
DeRegisterIndex
(
pNd
->
GetNodes
()
);
pNd
=
(
SwNode
*
)
&
rNd
;
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
)
;
RegisterIndex
(
pNd
->
GetNodes
()
);
}
else
pNd
=
(
SwNode
*
)
&
rNd
;
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
)
;
return
*
this
;
}
...
...
@@ -303,11 +303,11 @@ SwNodeIndex& SwNodeIndex::Assign( const SwNode& rNd, long nOffset )
if
(
&
pNd
->
GetNodes
()
!=
&
rNd
.
GetNodes
()
)
{
DeRegisterIndex
(
pNd
->
GetNodes
()
);
pNd
=
(
SwNode
*
)
&
rNd
;
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
)
;
RegisterIndex
(
pNd
->
GetNodes
()
);
}
else
pNd
=
(
SwNode
*
)
&
rNd
;
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
)
;
if
(
nOffset
)
pNd
=
pNd
->
GetNodes
()[
pNd
->
GetIndex
()
+
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