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
de0a3e8d
Kaydet (Commit)
de0a3e8d
authored
Kas 03, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1240253 unchecked return value
Change-Id: I0262cb51fbc0b8e4bb6d6aabbd59a7c271768a99
üst
b82055f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
DocumentLinksAdministrationManager.cxx
sw/source/core/doc/DocumentLinksAdministrationManager.cxx
+18
-16
No files found.
sw/source/core/doc/DocumentLinksAdministrationManager.cxx
Dosyayı görüntüle @
de0a3e8d
...
...
@@ -498,22 +498,24 @@ bool DocumentLinksAdministrationManager::SelectServerObj( const OUString& rStr,
const
SwOutlineNodes
&
rOutlNds
=
m_rDoc
.
GetNodes
().
GetOutLineNds
();
sal_uInt16
nTmpPos
;
rOutlNds
.
Seek_Entry
(
pNd
,
&
nTmpPos
);
rpRange
=
new
SwNodeRange
(
aPos
.
nNode
,
0
,
aPos
.
nNode
);
// look for the section's end, now
for
(
++
nTmpPos
;
nTmpPos
<
rOutlNds
.
size
()
&&
nLvl
<
rOutlNds
[
nTmpPos
]
->
GetTxtNode
()
->
GetAttrOutlineLevel
()
-
1
;
++
nTmpPos
)
;
// there is no block
if
(
nTmpPos
<
rOutlNds
.
size
()
)
rpRange
->
aEnd
=
*
rOutlNds
[
nTmpPos
];
else
rpRange
->
aEnd
=
m_rDoc
.
GetNodes
().
GetEndOfContent
();
return
true
;
if
(
rOutlNds
.
Seek_Entry
(
pNd
,
&
nTmpPos
)
)
{
rpRange
=
new
SwNodeRange
(
aPos
.
nNode
,
0
,
aPos
.
nNode
);
// look for the section's end, now
for
(
++
nTmpPos
;
nTmpPos
<
rOutlNds
.
size
()
&&
nLvl
<
rOutlNds
[
nTmpPos
]
->
GetTxtNode
()
->
GetAttrOutlineLevel
()
-
1
;
++
nTmpPos
)
;
// there is no block
if
(
nTmpPos
<
rOutlNds
.
size
()
)
rpRange
->
aEnd
=
*
rOutlNds
[
nTmpPos
];
else
rpRange
->
aEnd
=
m_rDoc
.
GetNodes
().
GetEndOfContent
();
return
true
;
}
}
}
...
...
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