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
6ef852f1
Kaydet (Commit)
6ef852f1
authored
Nis 21, 2012
tarafından
David Ostrovsky
Kaydeden (comit)
Caolán McNamara
Nis 21, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: extensions warnings fixed
üst
461b786b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
npshell.cxx
extensions/source/nsplugin/source/npshell.cxx
+5
-1
sane.cxx
extensions/source/scanner/sane.cxx
+24
-3
No files found.
extensions/source/nsplugin/source/npshell.cxx
Dosyayı görüntüle @
6ef852f1
...
@@ -772,7 +772,11 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
...
@@ -772,7 +772,11 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
break
;
break
;
}
}
write
(
fdDst
,
buffer
,
ret
);
ssize_t
written_bytes
=
write
(
fdDst
,
buffer
,
ret
);
if
(
written_bytes
==
-
1
)
{
return
;
}
}
}
close
(
fdSrc
);
close
(
fdSrc
);
close
(
fdDst
);
close
(
fdDst
);
...
...
extensions/source/scanner/sane.cxx
Dosyayı görüntüle @
6ef852f1
...
@@ -524,11 +524,24 @@ static inline sal_uInt8 _ReadValue( FILE* fp, int depth )
...
@@ -524,11 +524,24 @@ static inline sal_uInt8 _ReadValue( FILE* fp, int depth )
// e.g. UMAX Astra 1200S delivers 16 bit but in BIGENDIAN
// e.g. UMAX Astra 1200S delivers 16 bit but in BIGENDIAN
// against SANE documentation (xscanimage gets the same result
// against SANE documentation (xscanimage gets the same result
// as we do
// as we do
fread
(
&
nWord
,
1
,
2
,
fp
);
size_t
items_read
=
fread
(
&
nWord
,
1
,
2
,
fp
);
// fread() does not distinguish between end-of-file and error, and callers
// must use feof(3) and ferror(3) to determine which occurred.
if
(
items_read
==
0
)
{
// nothing todo?
// WaE is happy!
}
return
(
sal_uInt8
)(
nWord
/
256
);
return
(
sal_uInt8
)(
nWord
/
256
);
}
}
sal_uInt8
nByte
;
sal_uInt8
nByte
;
fread
(
&
nByte
,
1
,
1
,
fp
);
size_t
items_read
=
fread
(
&
nByte
,
1
,
1
,
fp
);
if
(
items_read
==
0
)
{
// nothing todo?
// WaE is happy!
}
return
nByte
;
return
nByte
;
}
}
...
@@ -814,7 +827,15 @@ sal_Bool Sane::Start( BitmapTransporter& rBitmap )
...
@@ -814,7 +827,15 @@ sal_Bool Sane::Start( BitmapTransporter& rBitmap )
(
eType
==
FrameStyle_Gray
&&
aParams
.
depth
==
8
)
(
eType
==
FrameStyle_Gray
&&
aParams
.
depth
==
8
)
)
)
{
{
fread
(
pBuffer
,
1
,
aParams
.
bytes_per_line
,
pFrame
);
size_t
items_read
=
fread
(
pBuffer
,
1
,
aParams
.
bytes_per_line
,
pFrame
);
// fread() does not distinguish between end-of-file and error, and callers
// must use feof(3) and ferror(3) to determine which occurred.
if
(
items_read
==
0
)
{
// nothing todo?
// WaE is happy!
}
aConverter
.
Write
(
pBuffer
,
aParams
.
bytes_per_line
);
aConverter
.
Write
(
pBuffer
,
aParams
.
bytes_per_line
);
}
}
else
if
(
eType
==
FrameStyle_Gray
)
else
if
(
eType
==
FrameStyle_Gray
)
...
...
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