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
e625a440
Kaydet (Commit)
e625a440
authored
Kas 17, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't assume sal_Unicode is unsigned short
Change-Id: Idcfa500c491fcedfff7d4c6e1bef25fd2d948d36
üst
34c254f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
stream.cxx
tools/source/stream/stream.cxx
+5
-3
No files found.
tools/source/stream/stream.cxx
Dosyayı görüntüle @
e625a440
...
...
@@ -127,6 +127,8 @@ inline static void SwapDouble( double& r )
}
#endif
static
void
SwapUnicode
(
sal_Unicode
&
r
)
{
r
=
OSL_SWAPWORD
(
r
);
}
//SDO
#define READNUMBER_WITHOUT_SWAP(datatype,value) \
...
...
@@ -609,7 +611,7 @@ bool SvStream::ReadUniStringLine( OUString& rStr, sal_Int32 nMaxCodepointsToRead
for
(
j
=
n
=
0
;
j
<
nLen
;
++
j
)
{
if
(
m_isSwap
)
SwapU
Short
(
buf
[
n
]
);
SwapU
nicode
(
buf
[
n
]
);
c
=
buf
[
j
];
if
(
c
==
'\n'
||
c
==
'\r'
)
{
...
...
@@ -651,7 +653,7 @@ bool SvStream::ReadUniStringLine( OUString& rStr, sal_Int32 nMaxCodepointsToRead
sal_Unicode
cTemp
;
Read
(
&
cTemp
,
sizeof
(
cTemp
)
);
if
(
m_isSwap
)
SwapU
Short
(
cTemp
);
SwapU
nicode
(
cTemp
);
if
(
cTemp
==
c
||
(
cTemp
!=
'\n'
&&
cTemp
!=
'\r'
)
)
Seek
(
nOldFilePos
);
}
...
...
@@ -729,7 +731,7 @@ sal_Size write_uInt16s_FromOUString(SvStream& rStrm, const OUString& rStr,
const
sal_Unicode
*
const
pStop
=
pTmp
+
nLen
;
while
(
p
<
pStop
)
{
SwapU
Short
(
*
p
);
SwapU
nicode
(
*
p
);
p
++
;
}
nWritten
=
rStrm
.
Write
(
pTmp
,
nLen
*
sizeof
(
sal_Unicode
)
);
...
...
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