Skip to content

Commit d39995b

Browse files
committed
fix gcc build warnings
1 parent e896861 commit d39995b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/usb/qusbdevice_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ QT_BEGIN_NAMESPACE
2929
class QUsbEventsThread : public QThread
3030
{
3131
public:
32-
void run();
32+
void run() override;
3333

3434
libusb_context *m_ctx;
3535
};

src/usb/qusbendpoint.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,18 @@ class Q_USB_EXPORT QUsbEndpoint : public QIODevice
7272
explicit QUsbEndpoint(QUsbDevice *dev, Type type, quint8 ep);
7373
~QUsbEndpoint();
7474

75-
bool open(QIODevice::OpenMode mode);
76-
void close();
75+
bool open(QIODevice::OpenMode mode) override;
76+
void close() override;
7777
Type type() const;
7878

7979
quint8 endpoint() const;
8080
Status status() const;
81-
bool isSequential() const;
81+
bool isSequential() const override;
8282

83-
qint64 bytesAvailable() const;
84-
qint64 bytesToWrite() const;
85-
bool waitForBytesWritten(int msecs);
86-
bool waitForReadyRead(int msecs);
83+
qint64 bytesAvailable() const override;
84+
qint64 bytesToWrite() const override;
85+
bool waitForBytesWritten(int msecs) override;
86+
bool waitForReadyRead(int msecs) override;
8787

8888
void makeControlPacket(char *buffer,
8989
QUsbEndpoint::bmRequestType bmRequestType,
@@ -101,8 +101,8 @@ public Q_SLOTS:
101101
void error(QUsbEndpoint::Status error);
102102

103103
protected:
104-
qint64 readData(char *data, qint64 maxSize);
105-
qint64 writeData(const char *data, qint64 maxSize);
104+
qint64 readData(char *data, qint64 maxSize) override;
105+
qint64 writeData(const char *data, qint64 maxSize) override;
106106

107107
private:
108108
QUsbEndpointPrivate *const d_dummy;

0 commit comments

Comments
 (0)