OSDN Git Service

fix namespaced build
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Mon, 21 Jun 2010 12:15:32 +0000 (14:15 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Mon, 21 Jun 2010 12:15:46 +0000 (14:15 +0200)
src/shared/proparser/profileevaluator.h
src/shared/proparser/profileparser.h

index 0031ee1..5831b9b 100644 (file)
@@ -116,8 +116,6 @@ private:
     friend struct ProFileOption;
 };
 
-Q_DECLARE_TYPEINFO(ProFileEvaluator::FunctionDef, Q_MOVABLE_TYPE);
-
 // This struct is from qmake, but we are not using everything.
 struct ProFileOption
 {
@@ -168,4 +166,6 @@ struct ProFileOption
 
 QT_END_NAMESPACE
 
+Q_DECLARE_TYPEINFO(ProFileEvaluator::FunctionDef, Q_MOVABLE_TYPE);
+
 #endif // PROFILEEVALUATOR_H
index 3cdd182..e4b0385 100644 (file)
@@ -142,11 +142,6 @@ private:
     friend class ProFileCache;
 };
 
-#if !defined(__GNUC__) || __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
-Q_DECLARE_TYPEINFO(ProFileParser::BlockScope, Q_MOVABLE_TYPE);
-Q_DECLARE_TYPEINFO(ProFileParser::Context, Q_PRIMITIVE_TYPE);
-#endif
-
 class ProFileCache
 {
 public:
@@ -178,4 +173,11 @@ private:
     friend class ProFileParser;
 };
 
+QT_END_NAMESPACE
+
+#if !defined(__GNUC__) || __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
+Q_DECLARE_TYPEINFO(ProFileParser::BlockScope, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(ProFileParser::Context, Q_PRIMITIVE_TYPE);
+#endif
+
 #endif // PROFILEPARSER_H