diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-06-22 09:38:08 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-06-22 16:20:10 +0000 |
commit | 31d834a1c0d83d22fcf74624577013a558ad1974 (patch) | |
tree | a0c7aa7b099bde26d639af8a8476f9b97ffbab8b /src/plugins/platforms/directfb | |
parent | 17542386569505b4f8be526f922103ab09d0c812 (diff) |
Mark all remaining RAII/smart pointer class ctors [[nodiscard]]
... like QUIP-0019 suggests.
The main problem here is finding these classes. We don't have markup
for RAII classes, so I had to find them by name. This patch is based
on the output of
git grep -we Q[A-Z0-9a-z_]+er
extracting the matches and piping them through sort -u, then removing
a lot of suffixes like Manager and Handler, then visually inspecting
the remaining list.
Task-number: QTBUG-104164
Pick-to: 6.6
Change-Id: I59b18d8d0a0237fcc11047857adc39b984ad7fcb
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/plugins/platforms/directfb')
-rw-r--r-- | src/plugins/platforms/directfb/qdirectfbconvenience.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbconvenience.h b/src/plugins/platforms/directfb/qdirectfbconvenience.h index c013988fe2..dc657f384e 100644 --- a/src/plugins/platforms/directfb/qdirectfbconvenience.h +++ b/src/plugins/platforms/directfb/qdirectfbconvenience.h @@ -62,7 +62,7 @@ template <typename T> class QDirectFBPointer : public QScopedPointer<T, QDirectFBInterfaceCleanupHandler<T> > { public: - QDirectFBPointer(T *t = nullptr) + Q_NODISCARD_CTOR QDirectFBPointer(T *t = nullptr) : QScopedPointer<T, QDirectFBInterfaceCleanupHandler<T> >(t) {} |