Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
libksane
Commits
e2d76640
Commit
e2d76640
authored
Jun 20, 2021
by
Alexander Stippich
Browse files
initialize some pointers
parent
6aa69092
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ksanewidget.cpp
View file @
e2d76640
...
@@ -467,12 +467,12 @@ bool KSaneWidget::openDevice(const QString &deviceName)
...
@@ -467,12 +467,12 @@ bool KSaneWidget::openDevice(const QString &deviceName)
numSaneOptions
=
*
reinterpret_cast
<
SANE_Word
*>
(
data
.
data
());
numSaneOptions
=
*
reinterpret_cast
<
SANE_Word
*>
(
data
.
data
());
// read the rest of the options
// read the rest of the options
KSaneBaseOption
*
option
;
KSaneBaseOption
*
option
=
nullptr
;
KSaneBaseOption
*
m_optionTopLeftX
;
KSaneBaseOption
*
m_optionTopLeftX
=
nullptr
;
KSaneBaseOption
*
m_optionTopLeftY
;
KSaneBaseOption
*
m_optionTopLeftY
=
nullptr
;
KSaneBaseOption
*
m_optionBottomRightX
;
KSaneBaseOption
*
m_optionBottomRightX
=
nullptr
;
KSaneBaseOption
*
m_optionBottomRightY
;
KSaneBaseOption
*
m_optionBottomRightY
=
nullptr
;
KSaneBaseOption
*
m_optionResolution
;
KSaneBaseOption
*
m_optionResolution
=
nullptr
;
for
(
i
=
1
;
i
<
numSaneOptions
;
++
i
)
{
for
(
i
=
1
;
i
<
numSaneOptions
;
++
i
)
{
switch
(
KSaneBaseOption
::
optionType
(
sane_get_option_descriptor
(
d
->
m_saneHandle
,
i
)))
{
switch
(
KSaneBaseOption
::
optionType
(
sane_get_option_descriptor
(
d
->
m_saneHandle
,
i
)))
{
case
KSaneOption
::
TypeDetectFail
:
case
KSaneOption
::
TypeDetectFail
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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