Add intrusive_ptr_nonnull and use it
commit6b386e1df775599c9f5e371fce672a92c36e3924
authorOlly Betts <olly@survex.com>
Fri, 29 Sep 2017 05:58:24 +0000 (29 18:58 +1300)
committerOlly Betts <olly@survex.com>
Fri, 29 Sep 2017 05:58:24 +0000 (29 18:58 +1300)
tree3757cefa546fe1db5c7d6278f7a05892fd96f753
parent3dc09282a10ad737d8a83b8cdd7c846653142bfa
Add intrusive_ptr_nonnull and use it

For many API classes, the internal pointer should never be NULL, and
building that knowledge into the smart pointer class means the compiler
can warn if it spots misuse and we can avoid unnecessary NULL pointer
checks.
xapian-core/include/xapian/cluster.h
xapian-core/include/xapian/document.h
xapian-core/include/xapian/intrusive_ptr.h
xapian-core/include/xapian/mset.h
xapian-core/include/xapian/queryparser.h
xapian-core/include/xapian/registry.h
xapian-core/include/xapian/termgenerator.h
xapian-core/matcher/msetpostlist.h