summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2012-12-11 16:17:08 +0100
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2012-12-12 18:46:31 +0200
commit211b18e22efe26635b0d4d8c4eab00cc0ae5ed20 (patch)
tree2f5411fbb25fd66765dc9cc3f43375ec3cb6c3c9
parent833db27d59fa7306ae1dfc1130678def45c00f7a (diff)
Moved Fraction debug helper to structs.h
-rw-r--r--src/QGst/discoverer.cpp6
-rw-r--r--src/QGst/structs.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/QGst/discoverer.cpp b/src/QGst/discoverer.cpp
index 1dfcaba..fd2c760 100644
--- a/src/QGst/discoverer.cpp
+++ b/src/QGst/discoverer.cpp
@@ -278,12 +278,6 @@ QDebug operator<<(QDebug debug, DiscovererResult result)
return (debug.nospace() << "QGst::DiscovererResult(" << uint(result) << ")").maybeSpace();
}
-// FIXME: move to fraction.h
-static QDebug operator<<(QDebug debug, const Fraction &f)
-{
- return (debug.nospace() << f.numerator << "/" << f.denominator).maybeSpace();
-}
-
template <typename T>
static const char *typeName();
diff --git a/src/QGst/structs.h b/src/QGst/structs.h
index 1f713d2..5cce8ac 100644
--- a/src/QGst/structs.h
+++ b/src/QGst/structs.h
@@ -18,6 +18,7 @@
#define QGST_STRUCTS_H
#include "global.h"
+#include <QtCore/QDebug>
namespace QGst {
@@ -83,6 +84,11 @@ namespace QGst {
int numerator;
int denominator;
};
+
+ inline QDebug operator<<(QDebug debug, const Fraction &f)
+ {
+ return (debug.nospace() << f.numerator << "/" << f.denominator).maybeSpace();
+ }
}
QGST_REGISTER_TYPE(QGst::Fraction)