path: root/src/corelib/io/qbuffer.cpp
diff options
authorAlessandro Portale <>2018-07-25 23:25:10 +0200
committerAlessandro Portale <>2018-09-25 13:34:19 +0000
commitd0c159c8e306709629e3af0b83b464c5cea15754 (patch)
tree45258dc9f251916707f64ff6dda515316bef4e6b /src/corelib/io/qbuffer.cpp
parent35ec3b49e1b0e7c72643a4e5b835bff57762f8cb (diff)
Fix a few overrides in Qt Core
This change removes redundant 'virtual' from function declarations. Clang Tidy's modernize-use-override check reports: warning: 'virtual' is redundant since the function is already declared 'override' CppCoreGuidelines say: C.128: Virtual functions should specify exactly one of virtual, override, or final Change-Id: I9a4bdd6cc041d46ae64b25597ba4f7268ac4c2b7 Reviewed-by: Friedemann Kleint <> Reviewed-by: Kevin Funk <>
Diffstat (limited to 'src/corelib/io/qbuffer.cpp')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qbuffer.cpp b/src/corelib/io/qbuffer.cpp
index e0b9c41323..7b3fa2ccad 100644
--- a/src/corelib/io/qbuffer.cpp
+++ b/src/corelib/io/qbuffer.cpp
@@ -60,8 +60,8 @@ public:
QByteArray *buf;
QByteArray defaultBuf;
- virtual qint64 peek(char *data, qint64 maxSize) override;
- virtual QByteArray peek(qint64 maxSize) override;
+ qint64 peek(char *data, qint64 maxSize) override;
+ QByteArray peek(qint64 maxSize) override;
// private slots