bloguetronica / cp2130-qt

A C++ class that uses libusb to interface with CP2130 devices. It can be used to configure the OTP ROM of such devices, as well as to control them. The class was made for Qt. If you wish to use a derived non-Qt version, please refer to https://github.com/bloguetronica/cp2130.
0 stars 0 forks source link

Style: The use of the keyword "struct" is not required when declaring "desc", in "cp2130.cpp", line 1072 #23

Closed samuelfmlourenco closed 2 years ago

samuelfmlourenco commented 2 years ago

On line 1072:

struct libusb_device_descriptor desc;

However, in C++, it is not required to use the "struct" keyword when declaring the variable "desc", which is of type "libusb_device_descriptor" which, in turn, is a structure.

samuelfmlourenco commented 2 years ago

Correction applied in version 2.2.1.