src/format.h

changeset 784
f82ab4d3c7b4
parent 739
152b33a6d51b
child 789
4b7306f52bb5
equal deleted inserted replaced
783:1db20d88650f 784:f82ab4d3c7b4
42 StringFormatArg (const char* a) : m_text (a) {} 42 StringFormatArg (const char* a) : m_text (a) {}
43 43
44 StringFormatArg (const void* a) 44 StringFormatArg (const void* a)
45 { 45 {
46 m_text.sprintf ("%p", a); 46 m_text.sprintf ("%p", a);
47 }
48
49 template<typename T>
50 StringFormatArg (QSharedPointer<T> const& a)
51 {
52 m_text.sprintf ("%p", a.data());
53 }
54
55 template<typename T>
56 StringFormatArg (QWeakPointer<T> const& a)
57 {
58 m_text.sprintf ("%p", a.data());
47 } 59 }
48 60
49 template<typename T> 61 template<typename T>
50 StringFormatArg (const QList<T>& a) 62 StringFormatArg (const QList<T>& a)
51 { 63 {

mercurial