Changeset View
Changeset View
Standalone View
Standalone View
src/core/support/Debug_p.h
Show All 36 Lines | |||||
37 | 37 | | |||
38 | class NoDebugStream : public QIODevice | 38 | class NoDebugStream : public QIODevice | ||
39 | { | 39 | { | ||
40 | public: | 40 | public: | ||
41 | NoDebugStream() | 41 | NoDebugStream() | ||
42 | { | 42 | { | ||
43 | open(WriteOnly); | 43 | open(WriteOnly); | ||
44 | } | 44 | } | ||
45 | bool isSequential() const Q_DECL_OVERRIDE | 45 | bool isSequential() const override | ||
46 | { | 46 | { | ||
47 | return true; | 47 | return true; | ||
48 | } | 48 | } | ||
49 | qint64 readData(char *, qint64) Q_DECL_OVERRIDE | 49 | qint64 readData(char *, qint64) override | ||
50 | { | 50 | { | ||
51 | return 0; | 51 | return 0; | ||
52 | } | 52 | } | ||
53 | qint64 readLineData(char *, qint64) Q_DECL_OVERRIDE | 53 | qint64 readLineData(char *, qint64) override | ||
54 | { | 54 | { | ||
55 | return 0; | 55 | return 0; | ||
56 | } | 56 | } | ||
57 | qint64 writeData(const char *, qint64 len) Q_DECL_OVERRIDE | 57 | qint64 writeData(const char *, qint64 len) override | ||
58 | { | 58 | { | ||
59 | return len; | 59 | return len; | ||
60 | } | 60 | } | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
63 | #endif // DEBUGPRIVATE_H | 63 | #endif // DEBUGPRIVATE_H |