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
93e971ac
Kaydet (Commit)
93e971ac
authored
Eki 13, 2011
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
A cppcheck cleaning with some simplification
üst
64e3c322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
jpeg.cxx
svtools/source/filter/jpeg/jpeg.cxx
+2
-6
No files found.
svtools/source/filter/jpeg/jpeg.cxx
Dosyayı görüntüle @
93e971ac
...
@@ -193,7 +193,7 @@ extern "C" void init_source (j_decompress_ptr cinfo)
...
@@ -193,7 +193,7 @@ extern "C" void init_source (j_decompress_ptr cinfo)
long
StreamRead
(
SvStream
*
pSvStm
,
void
*
pBuffer
,
long
nBufferSize
)
long
StreamRead
(
SvStream
*
pSvStm
,
void
*
pBuffer
,
long
nBufferSize
)
{
{
long
nRead
;
long
nRead
=
0
;
if
(
pSvStm
->
GetError
()
!=
ERRCODE_IO_PENDING
)
if
(
pSvStm
->
GetError
()
!=
ERRCODE_IO_PENDING
)
{
{
...
@@ -203,8 +203,6 @@ long StreamRead( SvStream* pSvStm, void* pBuffer, long nBufferSize )
...
@@ -203,8 +203,6 @@ long StreamRead( SvStream* pSvStm, void* pBuffer, long nBufferSize )
if
(
pSvStm
->
GetError
()
==
ERRCODE_IO_PENDING
)
if
(
pSvStm
->
GetError
()
==
ERRCODE_IO_PENDING
)
{
{
nRead
=
0
;
// Damit wir wieder an die alte Position
// Damit wir wieder an die alte Position
// seeken koennen, setzen wir den Error temp.zurueck
// seeken koennen, setzen wir den Error temp.zurueck
pSvStm
->
ResetError
();
pSvStm
->
ResetError
();
...
@@ -212,8 +210,6 @@ long StreamRead( SvStream* pSvStm, void* pBuffer, long nBufferSize )
...
@@ -212,8 +210,6 @@ long StreamRead( SvStream* pSvStm, void* pBuffer, long nBufferSize )
pSvStm
->
SetError
(
ERRCODE_IO_PENDING
);
pSvStm
->
SetError
(
ERRCODE_IO_PENDING
);
}
}
}
}
else
nRead
=
0
;
return
nRead
;
return
nRead
;
}
}
...
@@ -225,7 +221,7 @@ extern "C" boolean fill_input_buffer (j_decompress_ptr cinfo)
...
@@ -225,7 +221,7 @@ extern "C" boolean fill_input_buffer (j_decompress_ptr cinfo)
nbytes
=
StreamRead
(
src
->
infile
,
src
->
buffer
,
BUF_SIZE
);
nbytes
=
StreamRead
(
src
->
infile
,
src
->
buffer
,
BUF_SIZE
);
if
(
nbytes
<=
0
)
{
if
(
!
nbytes
)
{
if
(
src
->
start_of_file
)
/* Treat empty input file as fatal error */
if
(
src
->
start_of_file
)
/* Treat empty input file as fatal error */
ERREXIT
(
cinfo
,
JERR_INPUT_EMPTY
);
ERREXIT
(
cinfo
,
JERR_INPUT_EMPTY
);
WARNMS
(
cinfo
,
JWRN_JPEG_EOF
);
WARNMS
(
cinfo
,
JWRN_JPEG_EOF
);
...
...
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