summaryrefslogtreecommitdiff
path: root/src/QGlib/value.cpp
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2010-12-13 20:48:42 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2010-12-13 20:48:42 +0200
commit814f639fb955f99829285c255b66b694b94fbc64 (patch)
treed367b57004e00f976f6a06d87c24fb79a2046f84 /src/QGlib/value.cpp
parent915888ba70a8f61db16cf78a50e5ece1d4341481 (diff)
Move all the QDebug operator<<() inside the namespaces of their arguments.
C++'s Argument Dependent Lookup will take care of finding the right function to call. This avoids polluting the main mainspace and prevents possible ambiguous calls in case something can be implicitly cast to a QGlib/QGst class but we don't want it to.
Diffstat (limited to 'src/QGlib/value.cpp')
-rw-r--r--src/QGlib/value.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/QGlib/value.cpp b/src/QGlib/value.cpp
index 9178db9..ef90767 100644
--- a/src/QGlib/value.cpp
+++ b/src/QGlib/value.cpp
@@ -308,10 +308,7 @@ SharedValue & SharedValue::operator=(const SharedValue & other)
//END SharedValue
-} //namespace QGlib
-
-
-QDebug & operator<<(QDebug debug, const QGlib::ValueBase & value)
+QDebug & operator<<(QDebug debug, const ValueBase & value)
{
debug.nospace() << "QGlib::ValueBase";
if(!value.isValid()) {
@@ -334,3 +331,5 @@ QDebug & operator<<(QDebug debug, const QGlib::ValueBase & value)
return debug.space();
}
}
+
+} //namespace QGlib