diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-23 19:18:51 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-08 16:46:57 +0900 |
commit | ed1f15151babee9ebc690ffa5c2593119540e8f0 (patch) | |
tree | 5b7d5de859a8b22525b87d065f9152055b7d9aa2 /lib/csapi/definitions/client_device.h | |
parent | ced7179117fd67cb1632f943f4ba1fde96423c0c (diff) | |
download | libquotient-ed1f15151babee9ebc690ffa5c2593119540e8f0.tar.gz libquotient-ed1f15151babee9ebc690ffa5c2593119540e8f0.zip |
Omittable: make operator-> and operator* return an empty object if omitted == true
That is, instead of Q_ASSERTing in debug builds (release builds already work that way). The idea is that since the value is default-initialised anyway it can be used as a "blank canvas" to access specific fields inside the value's structure. The next commit will use that.
Diffstat (limited to 'lib/csapi/definitions/client_device.h')
0 files changed, 0 insertions, 0 deletions