diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-10-02 15:39:17 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-10-04 15:09:32 +0200 |
commit | f21ecb5657ee679f4c988de1bcd8d66b32952dec (patch) | |
tree | 63945085db454b1006a726966d426dbc696188a4 /tests/auto | |
parent | 191eb076a9b3f54b50d8c6d50039c59c03ae0483 (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 'tests/auto')
0 files changed, 0 insertions, 0 deletions