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
5294e631
Kaydet (Commit)
5294e631
authored
Kas 23, 2013
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use std::min + rename Ende to End
Change-Id: I835d661a5bd30c235fdf61a94ad73f85b57bf9ed
üst
485331b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
ascatr.cxx
sw/source/filter/ascii/ascatr.cxx
+8
-9
No files found.
sw/source/filter/ascii/ascatr.cxx
Dosyayı görüntüle @
5294e631
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
#include <fldbas.hxx>
#include <fldbas.hxx>
#include <ftninfo.hxx>
#include <ftninfo.hxx>
#include <algorithm>
/*
/*
* This file contains all output functions of the ASCII-Writer;
* This file contains all output functions of the ASCII-Writer;
* For all nodes, attributes, formats and chars.
* For all nodes, attributes, formats and chars.
...
@@ -175,11 +177,11 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode )
...
@@ -175,11 +177,11 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode )
const
SwTxtNode
&
rNd
=
(
SwTxtNode
&
)
rNode
;
const
SwTxtNode
&
rNd
=
(
SwTxtNode
&
)
rNode
;
sal_Int32
nStrPos
=
rWrt
.
pCurPam
->
GetPoint
()
->
nContent
.
GetIndex
();
sal_Int32
nStrPos
=
rWrt
.
pCurPam
->
GetPoint
()
->
nContent
.
GetIndex
();
const
sal_Int32
nNodeEnd
e
=
rNd
.
Len
();
const
sal_Int32
nNodeEnd
=
rNd
.
Len
();
sal_Int32
nEnd
e
=
nNodeEnde
;
sal_Int32
nEnd
=
nNodeEnd
;
bool
bLastNd
=
rWrt
.
pCurPam
->
GetPoint
()
->
nNode
==
rWrt
.
pCurPam
->
GetMark
()
->
nNode
;
bool
bLastNd
=
rWrt
.
pCurPam
->
GetPoint
()
->
nNode
==
rWrt
.
pCurPam
->
GetMark
()
->
nNode
;
if
(
bLastNd
)
if
(
bLastNd
)
nEnd
e
=
rWrt
.
pCurPam
->
GetMark
()
->
nContent
.
GetIndex
();
nEnd
=
rWrt
.
pCurPam
->
GetMark
()
->
nContent
.
GetIndex
();
SwASC_AttrIter
aAttrIter
(
(
SwASCWriter
&
)
rWrt
,
rNd
,
nStrPos
);
SwASC_AttrIter
aAttrIter
(
(
SwASCWriter
&
)
rWrt
,
rNd
,
nStrPos
);
...
@@ -201,10 +203,7 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode )
...
@@ -201,10 +203,7 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode )
RTL_TEXTENCODING_UTF8
==
rWrt
.
GetAsciiOptions
().
GetCharSet
();
RTL_TEXTENCODING_UTF8
==
rWrt
.
GetAsciiOptions
().
GetCharSet
();
do
{
do
{
sal_Int32
nNextAttr
=
aAttrIter
.
WhereNext
();
const
sal_Int32
nNextAttr
=
std
::
min
(
aAttrIter
.
WhereNext
(),
nEnd
);
if
(
nNextAttr
>
nEnde
)
nNextAttr
=
nEnde
;
if
(
!
aAttrIter
.
OutAttr
(
nStrPos
))
if
(
!
aAttrIter
.
OutAttr
(
nStrPos
))
{
{
...
@@ -216,11 +215,11 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode )
...
@@ -216,11 +215,11 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode )
}
}
nStrPos
=
nNextAttr
;
nStrPos
=
nNextAttr
;
aAttrIter
.
NextPos
();
aAttrIter
.
NextPos
();
}
while
(
nStrPos
<
nEnd
e
);
}
while
(
nStrPos
<
nEnd
);
if
(
!
bLastNd
||
if
(
!
bLastNd
||
(
(
!
rWrt
.
bWriteClipboardDoc
&&
!
rWrt
.
bASCII_NoLastLineEnd
)
(
(
!
rWrt
.
bWriteClipboardDoc
&&
!
rWrt
.
bASCII_NoLastLineEnd
)
&&
!
nStrPos
&&
nEnd
e
==
nNodeEnde
)
)
&&
!
nStrPos
&&
nEnd
==
nNodeEnd
)
)
rWrt
.
Strm
().
WriteUnicodeOrByteText
(
((
SwASCWriter
&
)
rWrt
).
GetLineEnd
());
rWrt
.
Strm
().
WriteUnicodeOrByteText
(
((
SwASCWriter
&
)
rWrt
).
GetLineEnd
());
return
rWrt
;
return
rWrt
;
...
...
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