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
49f78145
Kaydet (Commit)
49f78145
authored
Tem 17, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwGlobalTree::InsertRegion: -Werror=sign-compare
Change-Id: Ib00a12ba38334a1233c2894606c097bfa2891813
üst
0d3b54b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
glbltree.cxx
sw/source/ui/utlui/glbltree.cxx
+4
-3
No files found.
sw/source/ui/utlui/glbltree.cxx
Dosyayı görüntüle @
49f78145
...
...
@@ -1284,10 +1284,11 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* _pContent, const Sequen
rSh
.
StartAction
();
// after insertion of the first new content the 'pCont' parameter becomes invalid
// find the index of the 'anchor' content to always use a current anchor content
s
al_uInt16
nAnchorContent
=
pSwGlblDocContents
->
size
()
-
1
;
s
ize_t
nAnchorContent
=
pSwGlblDocContents
->
size
()
-
1
;
if
(
!
bMove
)
{
for
(
sal_uInt16
nContent
=
0
;
nContent
<
pSwGlblDocContents
->
size
();
++
nContent
)
for
(
size_t
nContent
=
0
;
nContent
<
pSwGlblDocContents
->
size
();
++
nContent
)
{
if
(
*
_pContent
==
*
(
*
pSwGlblDocContents
)[
nContent
]
)
{
...
...
@@ -1304,7 +1305,7 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* _pContent, const Sequen
SwGlblDocContent
*
pAnchorContent
=
0
;
OSL_ENSURE
(
aTempContents
.
size
()
>
(
nAnchorContent
+
nFile
),
"invalid anchor content -> last insertion failed"
);
if
(
aTempContents
.
size
()
>
(
nAnchorContent
+
nFile
)
)
pAnchorContent
=
aTempContents
[
nAnchorContent
+
(
sal_uInt16
)
nFile
];
pAnchorContent
=
aTempContents
[
nAnchorContent
+
nFile
];
else
pAnchorContent
=
aTempContents
.
back
();
String
sFileName
(
pFileNames
[
nFile
]);
...
...
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