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
120cd2b5
Kaydet (Commit)
120cd2b5
authored
May 16, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: MSVC2008 C4309 truncation of constant data
Change-Id: I7cae514cfd3c51bde5e8e0df2c51bed23904569d
üst
86ebc34d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
pdfentries.cxx
sdext/source/pdfimport/pdfparse/pdfentries.cxx
+2
-2
pdfioutdev_gpl.cxx
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+4
-2
pdfioutdev_gpl.hxx
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+1
-1
No files found.
sdext/source/pdfimport/pdfparse/pdfentries.cxx
Dosyayı görüntüle @
120cd2b5
...
@@ -225,8 +225,8 @@ bool PDFString::emit( EmitContext& rWriteContext ) const
...
@@ -225,8 +225,8 @@ bool PDFString::emit( EmitContext& rWriteContext ) const
// check for string or hex string
// check for string or hex string
const
sal_Char
*
pStr
=
aFiltered
.
getStr
();
const
sal_Char
*
pStr
=
aFiltered
.
getStr
();
if
(
aFiltered
.
getLength
()
>
1
&&
if
(
aFiltered
.
getLength
()
>
1
&&
(
(
pStr
[
0
]
==
sal_Char
(
0xff
)
&&
pStr
[
1
]
==
sal_Char
(
0xfe
)
)
||
(
(
(
unsigned
char
)
pStr
[
0
]
==
0xff
&&
(
unsigned
char
)
pStr
[
1
]
==
0xfe
)
||
(
pStr
[
0
]
==
sal_Char
(
0xfe
)
&&
pStr
[
1
]
==
sal_Char
(
0xff
)
)
)
)
(
(
unsigned
char
)
pStr
[
0
]
==
0xfe
&&
(
unsigned
char
)
pStr
[
1
]
==
0xff
)
)
)
{
{
static
const
char
pHexTab
[
16
]
=
{
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
static
const
char
pHexTab
[
16
]
=
{
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
};
'8'
,
'9'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
};
...
...
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
Dosyayı görüntüle @
120cd2b5
...
@@ -181,7 +181,8 @@ void writePbm_(OutputBuffer& o_rOutputBuf, Stream* str, int width, int height, b
...
@@ -181,7 +181,8 @@ void writePbm_(OutputBuffer& o_rOutputBuf, Stream* str, int width, int height, b
o_rOutputBuf
[
0
]
=
'P'
;
o_rOutputBuf
[
0
]
=
'P'
;
o_rOutputBuf
[
1
]
=
'4'
;
o_rOutputBuf
[
1
]
=
'4'
;
o_rOutputBuf
[
2
]
=
0x0A
;
o_rOutputBuf
[
2
]
=
0x0A
;
int
nOutLen
=
snprintf
(
&
o_rOutputBuf
[
3
],
WRITE_BUFFER_SIZE
-
10
,
"%d %d"
,
width
,
height
);
char
*
pAsCharPtr
=
reinterpret_cast
<
char
*>
(
&
o_rOutputBuf
[
3
]);
int
nOutLen
=
snprintf
(
pAsCharPtr
,
WRITE_BUFFER_SIZE
-
10
,
"%d %d"
,
width
,
height
);
if
(
nOutLen
<
0
)
if
(
nOutLen
<
0
)
nOutLen
=
WRITE_BUFFER_SIZE
-
10
;
nOutLen
=
WRITE_BUFFER_SIZE
-
10
;
o_rOutputBuf
[
3
+
nOutLen
]
=
0x0A
;
o_rOutputBuf
[
3
+
nOutLen
]
=
0x0A
;
...
@@ -228,7 +229,8 @@ void writePpm_( OutputBuffer& o_rOutputBuf,
...
@@ -228,7 +229,8 @@ void writePpm_( OutputBuffer& o_rOutputBuf,
o_rOutputBuf
[
0
]
=
'P'
;
o_rOutputBuf
[
0
]
=
'P'
;
o_rOutputBuf
[
1
]
=
'6'
;
o_rOutputBuf
[
1
]
=
'6'
;
o_rOutputBuf
[
2
]
=
'\n'
;
o_rOutputBuf
[
2
]
=
'\n'
;
int
nOutLen
=
snprintf
(
&
o_rOutputBuf
[
3
],
WRITE_BUFFER_SIZE
-
10
,
"%d %d"
,
width
,
height
);
char
*
pAsCharPtr
=
reinterpret_cast
<
char
*>
(
&
o_rOutputBuf
[
3
]);
int
nOutLen
=
snprintf
(
pAsCharPtr
,
WRITE_BUFFER_SIZE
-
10
,
"%d %d"
,
width
,
height
);
if
(
nOutLen
<
0
)
if
(
nOutLen
<
0
)
nOutLen
=
WRITE_BUFFER_SIZE
-
10
;
nOutLen
=
WRITE_BUFFER_SIZE
-
10
;
o_rOutputBuf
[
3
+
nOutLen
]
=
'\n'
;
o_rOutputBuf
[
3
+
nOutLen
]
=
'\n'
;
...
...
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
Dosyayı görüntüle @
120cd2b5
...
@@ -295,7 +295,7 @@ extern FILE* g_binary_out;
...
@@ -295,7 +295,7 @@ extern FILE* g_binary_out;
// note: if you ever hcange Output_t, please keep in mind that the current code
// note: if you ever hcange Output_t, please keep in mind that the current code
// relies on it being of 8 bit size
// relies on it being of 8 bit size
typedef
char
Output_t
;
typedef
Gu
char
Output_t
;
typedef
std
::
vector
<
Output_t
>
OutputBuffer
;
typedef
std
::
vector
<
Output_t
>
OutputBuffer
;
#endif
/* INCLUDED_PDFI_OUTDEV_HXX */
#endif
/* INCLUDED_PDFI_OUTDEV_HXX */
...
...
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