From 3104e4c121f3209890823db69a7c09d644b90951 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Date: Thu, 4 Jun 2009 09:49:23 +0200 Subject: [PATCH] fix gcc 3.3. build the templated friend just doesn't have any effect. so simply skip the typeinfo. will be slower, but you deserve that if you use that compiler. --- src/shared/proparser/profileevaluator.cpp | 2 ++ src/shared/proparser/profileevaluator.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index 6f6d6c7bbc3..47c9b93b336 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -248,8 +248,10 @@ public: bool m_parsePreAndPostFiles; }; +#if !defined(__GNUC__) || __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3) Q_DECLARE_TYPEINFO(ProFileEvaluator::Private::State, Q_PRIMITIVE_TYPE); Q_DECLARE_TYPEINFO(ProFileEvaluator::Private::ProLoop, Q_MOVABLE_TYPE); +#endif ProFileEvaluator::Private::Private(ProFileEvaluator *q_) : q(q_) diff --git a/src/shared/proparser/profileevaluator.h b/src/shared/proparser/profileevaluator.h index de4b07f41d0..cb3a4880331 100644 --- a/src/shared/proparser/profileevaluator.h +++ b/src/shared/proparser/profileevaluator.h @@ -88,6 +88,7 @@ private: class Private; Private *d; + // This doesn't help gcc 3.3 ... template<typename T> friend class QTypeInfo; }; -- GitLab