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
52faa80a
Kaydet (Commit)
52faa80a
authored
Mar 19, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove fiddly casts, add few const where appropriate
üst
54fb699f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
sane.cxx
extensions/source/scanner/sane.cxx
+7
-8
No files found.
extensions/source/scanner/sane.cxx
Dosyayı görüntüle @
52faa80a
...
@@ -277,8 +277,7 @@ void Sane::ReloadOptions()
...
@@ -277,8 +277,7 @@ void Sane::ReloadOptions()
if
(
!
IsOpen
()
)
if
(
!
IsOpen
()
)
return
;
return
;
SANE_Option_Descriptor
*
pZero
=
(
SANE_Option_Descriptor
*
)
const
SANE_Option_Descriptor
*
pZero
=
p_get_option_descriptor
(
maHandle
,
0
);
p_get_option_descriptor
(
maHandle
,
0
);
SANE_Word
pOptions
[
2
];
SANE_Word
pOptions
[
2
];
SANE_Status
nStatus
=
p_control_option
(
maHandle
,
0
,
SANE_ACTION_GET_VALUE
,
SANE_Status
nStatus
=
p_control_option
(
maHandle
,
0
,
SANE_ACTION_GET_VALUE
,
(
void
*
)
pOptions
,
NULL
);
(
void
*
)
pOptions
,
NULL
);
...
@@ -290,8 +289,8 @@ void Sane::ReloadOptions()
...
@@ -290,8 +289,8 @@ void Sane::ReloadOptions()
fprintf
(
stderr
,
"driver returned numer of options with larger size tha SANE_Word !!!
\n
"
);
fprintf
(
stderr
,
"driver returned numer of options with larger size tha SANE_Word !!!
\n
"
);
if
(
mppOptions
)
if
(
mppOptions
)
delete
[]
mppOptions
;
delete
[]
mppOptions
;
mppOptions
=
(
const
SANE_Option_Descriptor
**
)
new
SANE_Option_Descriptor
*
[
mnOptions
];
mppOptions
=
new
const
SANE_Option_Descriptor
*
[
mnOptions
];
mppOptions
[
0
]
=
(
SANE_Option_Descriptor
*
)
pZero
;
mppOptions
[
0
]
=
pZero
;
for
(
int
i
=
1
;
i
<
mnOptions
;
i
++
)
for
(
int
i
=
1
;
i
<
mnOptions
;
i
++
)
mppOptions
[
i
]
=
(
SANE_Option_Descriptor
*
)
mppOptions
[
i
]
=
(
SANE_Option_Descriptor
*
)
p_get_option_descriptor
(
maHandle
,
i
);
p_get_option_descriptor
(
maHandle
,
i
);
...
@@ -535,14 +534,14 @@ static inline sal_uInt8 _ReadValue( FILE* fp, int depth )
...
@@ -535,14 +534,14 @@ static inline sal_uInt8 _ReadValue( FILE* fp, int depth )
sal_Bool
Sane
::
CheckConsistency
(
const
char
*
pMes
,
sal_Bool
bInit
)
sal_Bool
Sane
::
CheckConsistency
(
const
char
*
pMes
,
sal_Bool
bInit
)
{
{
static
SANE_Option_Descriptor
**
pDescArray
=
NULL
;
static
const
SANE_Option_Descriptor
**
pDescArray
=
NULL
;
static
SANE_Option_Descriptor
*
pZero
=
NULL
;
static
const
SANE_Option_Descriptor
*
pZero
=
NULL
;
if
(
bInit
)
if
(
bInit
)
{
{
pDescArray
=
(
SANE_Option_Descriptor
**
)
mppOptions
;
pDescArray
=
mppOptions
;
if
(
mppOptions
)
if
(
mppOptions
)
pZero
=
(
SANE_Option_Descriptor
*
)
mppOptions
[
0
];
pZero
=
mppOptions
[
0
];
return
sal_True
;
return
sal_True
;
}
}
...
...
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