src/format.h

changeset 784
f82ab4d3c7b4
parent 739
152b33a6d51b
child 789
4b7306f52bb5
--- a/src/format.h	Sun Jun 01 03:15:36 2014 +0300
+++ b/src/format.h	Mon Jun 02 12:50:40 2014 +0300
@@ -47,6 +47,18 @@
 		}
 
 		template<typename T>
+		StringFormatArg (QSharedPointer<T> const& a)
+		{
+			m_text.sprintf ("%p", a.data());
+		}
+
+		template<typename T>
+		StringFormatArg (QWeakPointer<T> const& a)
+		{
+			m_text.sprintf ("%p", a.data());
+		}
+
+		template<typename T>
 		StringFormatArg (const QList<T>& a)
 		{
 			m_text = "{";

mercurial