summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-watchos-clang
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-10-02 15:39:17 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-10-04 15:09:32 +0200
commitf21ecb5657ee679f4c988de1bcd8d66b32952dec (patch)
tree63945085db454b1006a726966d426dbc696188a4 /mkspecs/macx-watchos-clang
parent191eb076a9b3f54b50d8c6d50039c59c03ae0483 (diff)
Simplify creating QCFTypes from CFTypeRefs
Instead of forcing the user to cast: QCFType<CFFooRef> foo = (CFFooRef)CFFunctionReturningCFTypeRef()); We can do it for them, since we already know the expected type: auto foo = QCFType<CFFooRef>(CFFunctionReturningCFTypeRef)); Change-Id: I994d5d6530f220288b4bfd6ab16eae9f159ce3ef Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'mkspecs/macx-watchos-clang')
0 files changed, 0 insertions, 0 deletions