General tidying, addressing issues found by static analysis tool.

This commit is contained in:
Nav
2021-06-22 23:52:31 +01:00
parent 69cee4d579
commit d365f6348b
151 changed files with 386 additions and 420 deletions

View File

@@ -26,8 +26,6 @@ namespace Bloom::Usb
void close();
public:
void init();
UsbDevice(std::uint16_t vendorId, std::uint16_t productId) {
this->vendorId = vendorId;
this->productId = productId;
@@ -35,6 +33,8 @@ namespace Bloom::Usb
~UsbDevice() = default;
void init();
[[nodiscard]] libusb_device* getLibUsbDevice() const {
return this->libUsbDevice;
}
@@ -43,11 +43,11 @@ namespace Bloom::Usb
this->libUsbDevice = libUsbDevice;
}
std::uint16_t getVendorId() const {
[[nodiscard]] std::uint16_t getVendorId() const {
return this->vendorId;
}
std::uint16_t getProductId() const {
[[nodiscard]] std::uint16_t getProductId() const {
return this->productId;
}