aboutsummaryrefslogtreecommitdiff
path: root/lib/events/receiptevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-23 19:18:51 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-08 16:46:57 +0900
commited1f15151babee9ebc690ffa5c2593119540e8f0 (patch)
tree5b7d5de859a8b22525b87d065f9152055b7d9aa2 /lib/events/receiptevent.cpp
parentced7179117fd67cb1632f943f4ba1fde96423c0c (diff)
downloadlibquotient-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/events/receiptevent.cpp')
0 files changed, 0 insertions, 0 deletions