Skip to content

Commit

Permalink
fix gcc build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoussin committed Oct 28, 2024
1 parent e896861 commit d39995b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/usb/qusbdevice_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ QT_BEGIN_NAMESPACE
class QUsbEventsThread : public QThread
{
public:
void run();
void run() override;

libusb_context *m_ctx;
};
Expand Down
18 changes: 9 additions & 9 deletions src/usb/qusbendpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,18 @@ class Q_USB_EXPORT QUsbEndpoint : public QIODevice
explicit QUsbEndpoint(QUsbDevice *dev, Type type, quint8 ep);
~QUsbEndpoint();

bool open(QIODevice::OpenMode mode);
void close();
bool open(QIODevice::OpenMode mode) override;
void close() override;
Type type() const;

quint8 endpoint() const;
Status status() const;
bool isSequential() const;
bool isSequential() const override;

qint64 bytesAvailable() const;
qint64 bytesToWrite() const;
bool waitForBytesWritten(int msecs);
bool waitForReadyRead(int msecs);
qint64 bytesAvailable() const override;
qint64 bytesToWrite() const override;
bool waitForBytesWritten(int msecs) override;
bool waitForReadyRead(int msecs) override;

void makeControlPacket(char *buffer,
QUsbEndpoint::bmRequestType bmRequestType,
Expand All @@ -101,8 +101,8 @@ public Q_SLOTS:
void error(QUsbEndpoint::Status error);

protected:
qint64 readData(char *data, qint64 maxSize);
qint64 writeData(const char *data, qint64 maxSize);
qint64 readData(char *data, qint64 maxSize) override;
qint64 writeData(const char *data, qint64 maxSize) override;

private:
QUsbEndpointPrivate *const d_dummy;
Expand Down

0 comments on commit d39995b

Please sign in to comment.