readability-redundant-smartptr-get.rst
516 Bytes
readability-redundant-smartptr-get
Find and remove redundant calls to smart pointer's .get()
method.
Examples:
ptr.get()->Foo() ==> ptr->Foo()
*ptr.get() ==> *ptr
*ptr->get() ==> **ptr
if (ptr.get() == nullptr) ... => if (ptr == nullptr) ...