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: Variable "errcnt" should be incremented using the pre-increment operator #24

Closed samuelfmlourenco closed 2 years ago

samuelfmlourenco commented 2 years ago

The variable "errcnt" is being incremented by one in several occasions:

errcnt += 1;

However, this should be done using the pre-increment operator:

++errcnt;

samuelfmlourenco commented 2 years ago

Correction applied in version 2.2.1.