summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2025-11-09 21:55:52 +0200
committerAhmad Samir <a.samirh78@gmail.com>2025-11-16 18:04:04 +0200
commit0b31f9faed97bf3a1f64684ff7f2cb30ae528706 (patch)
tree057dcc25c261eaa401a3abb34fce6c085a8d2004 /src
parent7bf27b88eafbc54762cdeb28c9202bb7e080b308 (diff)
Remove redundant Q_FLAGS usage from two private classes
Both classes don't inherit from QObject, so the Q_FLAGS macro doesn't register anything with the meta-object system here. Task-number: QTBUG-99060 Change-Id: Id25f8b92cfe6eeade28059f5f7c661603f08e863 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qdir_p.h1
-rw-r--r--src/opengl/qopengltextureuploader_p.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/io/qdir_p.h b/src/corelib/io/qdir_p.h
index dc0756d2ec3..f13fbc63d00 100644
--- a/src/corelib/io/qdir_p.h
+++ b/src/corelib/io/qdir_p.h
@@ -35,7 +35,6 @@ public:
RemotePath = 0x02,
};
Q_DECLARE_FLAGS(PathNormalizations, PathNormalization)
- Q_FLAGS(PathNormalizations)
explicit QDirPrivate(const QString &path, const QStringList &nameFilters_ = QStringList(),
QDir::SortFlags sort_ = QDir::SortFlags(QDir::Name | QDir::IgnoreCase),
diff --git a/src/opengl/qopengltextureuploader_p.h b/src/opengl/qopengltextureuploader_p.h
index 299a4b81dc9..140d1feae12 100644
--- a/src/opengl/qopengltextureuploader_p.h
+++ b/src/opengl/qopengltextureuploader_p.h
@@ -34,7 +34,6 @@ public:
PowerOfTwoBindOption = 0x0008
};
Q_DECLARE_FLAGS(BindOptions, BindOption)
- Q_FLAGS(BindOptions)
static qsizetype textureImage(GLenum target, const QImage &image, BindOptions options, QSize maxSize = QSize());