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
c62d31f7
Kaydet (Commit)
c62d31f7
authored
Mar 25, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify #if blocks a little
Change-Id: I2867917e02ef808e4f74175bc146fcbb9bcba7be
üst
8e5f5d3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
poly.cxx
tools/source/generic/poly.cxx
+13
-17
No files found.
tools/source/generic/poly.cxx
Dosyayı görüntüle @
c62d31f7
...
@@ -1522,14 +1522,14 @@ SvStream& ReadPolygon( SvStream& rIStream, Polygon& rPoly )
...
@@ -1522,14 +1522,14 @@ SvStream& ReadPolygon( SvStream& rIStream, Polygon& rPoly )
{
{
// Determine whether we need to write through operators
// Determine whether we need to write through operators
#if (SAL_TYPES_SIZEOFLONG) != 4
#if (SAL_TYPES_SIZEOFLONG) == 4
if
(
true
)
#else
#ifdef OSL_BIGENDIAN
#ifdef OSL_BIGENDIAN
if
(
rIStream
.
GetNumberFormatInt
()
!
=
NUMBERFORMAT_INT_BIGENDIAN
)
if
(
rIStream
.
GetNumberFormatInt
()
=
=
NUMBERFORMAT_INT_BIGENDIAN
)
#else
#else
if
(
rIStream
.
GetNumberFormatInt
()
!
=
NUMBERFORMAT_INT_LITTLEENDIAN
)
if
(
rIStream
.
GetNumberFormatInt
()
=
=
NUMBERFORMAT_INT_LITTLEENDIAN
)
#endif
#endif
rIStream
.
Read
(
rPoly
.
mpImplPolygon
->
mpPointAry
,
nPoints
*
sizeof
(
Point
)
);
else
#endif
#endif
{
{
for
(
i
=
0
;
i
<
nPoints
;
i
++
)
for
(
i
=
0
;
i
<
nPoints
;
i
++
)
...
@@ -1541,8 +1541,6 @@ SvStream& ReadPolygon( SvStream& rIStream, Polygon& rPoly )
...
@@ -1541,8 +1541,6 @@ SvStream& ReadPolygon( SvStream& rIStream, Polygon& rPoly )
rPoly
.
mpImplPolygon
->
mpPointAry
[
i
].
Y
()
=
nTmpY
;
rPoly
.
mpImplPolygon
->
mpPointAry
[
i
].
Y
()
=
nTmpY
;
}
}
}
}
else
rIStream
.
Read
(
rPoly
.
mpImplPolygon
->
mpPointAry
,
nPoints
*
sizeof
(
Point
)
);
}
}
return
rIStream
;
return
rIStream
;
...
@@ -1560,14 +1558,17 @@ SvStream& WritePolygon( SvStream& rOStream, const Polygon& rPoly )
...
@@ -1560,14 +1558,17 @@ SvStream& WritePolygon( SvStream& rOStream, const Polygon& rPoly )
{
{
// Determine whether we need to write through operators
// Determine whether we need to write through operators
#if (SAL_TYPES_SIZEOFLONG) != 4
#if (SAL_TYPES_SIZEOFLONG) == 4
if
(
true
)
#else
#ifdef OSL_BIGENDIAN
#ifdef OSL_BIGENDIAN
if
(
rOStream
.
GetNumberFormatInt
()
!
=
NUMBERFORMAT_INT_BIGENDIAN
)
if
(
rOStream
.
GetNumberFormatInt
()
=
=
NUMBERFORMAT_INT_BIGENDIAN
)
#else
#else
if
(
rOStream
.
GetNumberFormatInt
()
!
=
NUMBERFORMAT_INT_LITTLEENDIAN
)
if
(
rOStream
.
GetNumberFormatInt
()
=
=
NUMBERFORMAT_INT_LITTLEENDIAN
)
#endif
#endif
{
if
(
nPoints
)
rOStream
.
Write
(
rPoly
.
mpImplPolygon
->
mpPointAry
,
nPoints
*
sizeof
(
Point
)
);
}
else
#endif
#endif
{
{
for
(
i
=
0
;
i
<
nPoints
;
i
++
)
for
(
i
=
0
;
i
<
nPoints
;
i
++
)
...
@@ -1577,11 +1578,6 @@ SvStream& WritePolygon( SvStream& rOStream, const Polygon& rPoly )
...
@@ -1577,11 +1578,6 @@ SvStream& WritePolygon( SvStream& rOStream, const Polygon& rPoly )
.
WriteInt32
(
sal
::
static_int_cast
<
sal_Int32
>
(
rPoly
.
mpImplPolygon
->
mpPointAry
[
i
].
Y
()
)
);
.
WriteInt32
(
sal
::
static_int_cast
<
sal_Int32
>
(
rPoly
.
mpImplPolygon
->
mpPointAry
[
i
].
Y
()
)
);
}
}
}
}
else
{
if
(
nPoints
)
rOStream
.
Write
(
rPoly
.
mpImplPolygon
->
mpPointAry
,
nPoints
*
sizeof
(
Point
)
);
}
}
}
return
rOStream
;
return
rOStream
;
...
...
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