summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcore_mac_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-02-20 17:53:39 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-23 00:29:13 +0100
commit1b08e0307dfebe561fbb0819a2d6b53edd8e8e93 (patch)
tree6b1277674c191fc60aa1142c2fb7130bbab3e5a6 /src/corelib/kernel/qcore_mac_p.h
parent3dc634be36326bc5e60f3baa4c5b8904e22347f2 (diff)
Don't assume that all CFPropertyListRef are CFArrayRefs
We might need more robust code in the future. But at least for this case it looks like a CFStringRef is also a possibility. Task-number: QTBUG-29776 Change-Id: Iaf50835122fcbb7e6e9c7fbf65e31e6143b2bc54 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Denis Dzyubenko <denis@ddenis.info>
Diffstat (limited to 'src/corelib/kernel/qcore_mac_p.h')
-rw-r--r--src/corelib/kernel/qcore_mac_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h
index c3a3afaf6c..cbbbc18814 100644
--- a/src/corelib/kernel/qcore_mac_p.h
+++ b/src/corelib/kernel/qcore_mac_p.h
@@ -106,6 +106,7 @@ public:
return *this;
}
inline T *operator&() { return &type; }
+ template <typename X> X as() const { return reinterpret_cast<X>(type); }
static QCFType constructFromGet(const T &t)
{
CFRetain(t);