diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-06 17:53:58 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-15 14:43:43 +0200 |
commit | 0e6a327f1464ab1127e424b47bb3ecd98c306a10 (patch) | |
tree | 1c5ac6de5e1acf5e69932bcbae66241ddeed64da /src/corelib/global | |
parent | df289c822dc818e3ac78a9975b7a3f98a1486347 (diff) |
Remove friend declarations that aren't required
Those are problematic as they are also interpreted as
forward declarations of methods that are defined inline in
qdatastream.h and might never get instantiated. This can
lead to problems if template code checks for the existence
of the method.
Change-Id: I4550a6bc70ebd7edc57fe0420b89b453195971d0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qflags.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/global/qflags.h b/src/corelib/global/qflags.h index cf0cd4b155..2319a78877 100644 --- a/src/corelib/global/qflags.h +++ b/src/corelib/global/qflags.h @@ -97,8 +97,6 @@ class QFlags struct Private; typedef int (Private::*Zero); #endif - template <typename E> friend QDataStream &operator>>(QDataStream &, QFlags<E> &); - template <typename E> friend QDataStream &operator<<(QDataStream &, QFlags<E>); public: #if defined(Q_CC_MSVC) || defined(Q_CLANG_QDOC) // see above for MSVC |