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
a6c05836
Kaydet (Commit)
a6c05836
authored
Ara 21, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove duplicated code
Change-Id: Id306d1dc75ef9d5ec5ec2e48be318e0632ea2377
üst
583c9496
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
ndindex.hxx
sw/inc/ndindex.hxx
+3
-24
No files found.
sw/inc/ndindex.hxx
Dosyayı görüntüle @
a6c05836
...
...
@@ -261,14 +261,7 @@ inline SwNodeIndex& SwNodeIndex::operator=( sal_uLong nWert )
SwNodeIndex
&
SwNodeIndex
::
operator
=
(
const
SwNodeIndex
&
rIdx
)
{
if
(
&
pNd
->
GetNodes
()
!=
&
rIdx
.
pNd
->
GetNodes
()
)
{
DeRegisterIndex
(
pNd
->
GetNodes
()
);
pNd
=
rIdx
.
pNd
;
RegisterIndex
(
pNd
->
GetNodes
()
);
}
else
pNd
=
rIdx
.
pNd
;
*
this
=
*
(
rIdx
.
pNd
);
return
*
this
;
}
...
...
@@ -287,27 +280,13 @@ SwNodeIndex& SwNodeIndex::operator=( const SwNode& rNd )
SwNodeIndex
&
SwNodeIndex
::
Assign
(
SwNodes
&
rNds
,
sal_uLong
nIdx
)
{
if
(
&
pNd
->
GetNodes
()
!=
&
rNds
)
{
DeRegisterIndex
(
pNd
->
GetNodes
()
);
pNd
=
rNds
[
nIdx
];
RegisterIndex
(
pNd
->
GetNodes
()
);
}
else
pNd
=
rNds
[
nIdx
];
*
this
=
*
rNds
[
nIdx
];
return
*
this
;
}
SwNodeIndex
&
SwNodeIndex
::
Assign
(
const
SwNode
&
rNd
,
long
nOffset
)
{
if
(
&
pNd
->
GetNodes
()
!=
&
rNd
.
GetNodes
()
)
{
DeRegisterIndex
(
pNd
->
GetNodes
()
);
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
);
RegisterIndex
(
pNd
->
GetNodes
()
);
}
else
pNd
=
const_cast
<
SwNode
*>
(
&
rNd
);
*
this
=
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