Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KInfoCenter
Commits
403ebd50
Commit
403ebd50
authored
Jul 21, 2020
by
Pino Toscano
Browse files
usb: wrap initialization
It will be easier to edit in following changes.
parent
d37d11a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/usbview/usbdevices.cpp
View file @
403ebd50
...
...
@@ -35,8 +35,32 @@ QList<USBDevice*> USBDevice::_devices;
USBDB
*
USBDevice
::
_db
;
USBDevice
::
USBDevice
()
:
_bus
(
0
),
_level
(
0
),
_parent
(
0
),
_port
(
0
),
_count
(
0
),
_device
(
0
),
_channels
(
0
),
_power
(
0
),
_speed
(
0.0
),
_bwTotal
(
0
),
_bwUsed
(
0
),
_bwPercent
(
0
),
_bwIntr
(
0
),
_bwIso
(
0
),
_hasBW
(
false
),
_verMajor
(
0
),
_verMinor
(
0
),
_class
(
0
),
_sub
(
0
),
_prot
(
0
),
_maxPacketSize
(
0
),
_configs
(
0
),
_vendorID
(
0
),
_prodID
(
0
),
_revMajor
(
0
),
_revMinor
(
0
)
{
_bus
(
0
),
_level
(
0
),
_parent
(
0
),
_port
(
0
),
_count
(
0
),
_device
(
0
),
_channels
(
0
),
_power
(
0
),
_speed
(
0.0
),
_bwTotal
(
0
),
_bwUsed
(
0
),
_bwPercent
(
0
),
_bwIntr
(
0
),
_bwIso
(
0
),
_hasBW
(
false
),
_verMajor
(
0
),
_verMinor
(
0
),
_class
(
0
),
_sub
(
0
),
_prot
(
0
),
_maxPacketSize
(
0
),
_configs
(
0
),
_vendorID
(
0
),
_prodID
(
0
),
_revMajor
(
0
),
_revMinor
(
0
)
{
_devices
.
append
(
this
);
if
(
!
_db
)
...
...
Write
Preview
Supports
Markdown
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