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
733f9f92
Kaydet (Commit)
733f9f92
authored
Mar 29, 2013
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use const_iterator instead of iterator
Change-Id: Iaacbbfb4d97d7081e5a0b520b4037d4988604e0b
üst
278d036b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
wrong.cxx
sw/source/core/text/wrong.cxx
+5
-7
No files found.
sw/source/core/text/wrong.cxx
Dosyayı görüntüle @
733f9f92
...
@@ -179,8 +179,7 @@ MSHORT SwWrongList::GetWrongPos( xub_StrLen nValue ) const
...
@@ -179,8 +179,7 @@ MSHORT SwWrongList::GetWrongPos( xub_StrLen nValue ) const
// position of the first smart tag which coveres nValue
// position of the first smart tag which coveres nValue
if
(
!
maList
[
0
].
maType
.
isEmpty
()
||
maList
[
0
].
mpSubList
)
if
(
!
maList
[
0
].
maType
.
isEmpty
()
||
maList
[
0
].
mpSubList
)
{
{
std
::
vector
<
SwWrongArea
>::
const_iterator
aIter
=
maList
.
begin
();
for
(
std
::
vector
<
SwWrongArea
>::
const_iterator
aIter
(
maList
.
begin
()),
aEnd
(
maList
.
end
());
aIter
!=
aEnd
;
++
aIter
)
while
(
aIter
!=
maList
.
end
()
)
{
{
const
xub_StrLen
nSTPos
=
(
*
aIter
).
mnPos
;
const
xub_StrLen
nSTPos
=
(
*
aIter
).
mnPos
;
const
xub_StrLen
nSTLen
=
(
*
aIter
).
mnLen
;
const
xub_StrLen
nSTLen
=
(
*
aIter
).
mnLen
;
...
@@ -189,7 +188,6 @@ MSHORT SwWrongList::GetWrongPos( xub_StrLen nValue ) const
...
@@ -189,7 +188,6 @@ MSHORT SwWrongList::GetWrongPos( xub_StrLen nValue ) const
else
if
(
nSTPos
>
nValue
)
else
if
(
nSTPos
>
nValue
)
break
;
break
;
++
aIter
;
++
nUnten
;
++
nUnten
;
}
}
return
nUnten
;
return
nUnten
;
...
@@ -553,15 +551,15 @@ void SwWrongList::Remove(sal_uInt16 nIdx, sal_uInt16 nLen )
...
@@ -553,15 +551,15 @@ void SwWrongList::Remove(sal_uInt16 nIdx, sal_uInt16 nLen )
void
SwWrongList
::
RemoveEntry
(
xub_StrLen
nBegin
,
xub_StrLen
nEnd
)
{
void
SwWrongList
::
RemoveEntry
(
xub_StrLen
nBegin
,
xub_StrLen
nEnd
)
{
sal_uInt16
nDelPos
=
0
;
sal_uInt16
nDelPos
=
0
;
sal_uInt16
nDel
=
0
;
sal_uInt16
nDel
=
0
;
std
::
vector
<
SwWrongArea
>::
iterator
aIter
=
maList
.
begin
(
);
std
::
vector
<
SwWrongArea
>::
const_iterator
aIter
(
maList
.
begin
()),
aEnd
(
maList
.
end
()
);
while
(
aIter
!=
maList
.
end
()
&&
(
*
aIter
).
mnPos
<
nBegin
)
while
(
aIter
!=
aEnd
&&
(
*
aIter
).
mnPos
<
nBegin
)
{
{
++
aIter
;
++
aIter
;
++
nDelPos
;
++
nDelPos
;
}
}
if
(
WRONGLIST_GRAMMAR
==
GetWrongListType
()
)
if
(
WRONGLIST_GRAMMAR
==
GetWrongListType
()
)
{
{
while
(
aIter
!=
maList
.
end
()
&&
nBegin
<
nEnd
&&
nEnd
>
(
*
aIter
).
mnPos
)
while
(
aIter
!=
aEnd
&&
nBegin
<
nEnd
&&
nEnd
>
(
*
aIter
).
mnPos
)
{
{
++
aIter
;
++
aIter
;
++
nDel
;
++
nDel
;
...
@@ -569,7 +567,7 @@ void SwWrongList::RemoveEntry( xub_StrLen nBegin, xub_StrLen nEnd ) {
...
@@ -569,7 +567,7 @@ void SwWrongList::RemoveEntry( xub_StrLen nBegin, xub_StrLen nEnd ) {
}
}
else
else
{
{
while
(
aIter
!=
maList
.
end
()
&&
nBegin
==
(
*
aIter
).
mnPos
&&
nEnd
==
(
*
aIter
).
mnPos
+
(
*
aIter
).
mnLen
)
while
(
aIter
!=
aEnd
&&
nBegin
==
(
*
aIter
).
mnPos
&&
nEnd
==
(
*
aIter
).
mnPos
+
(
*
aIter
).
mnLen
)
{
{
++
aIter
;
++
aIter
;
++
nDel
;
++
nDel
;
...
...
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