summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Greg Kaiser <gkaiser@google.com> 2019-01-29 07:10:14 -0800
committer Greg Kaiser <gkaiser@google.com> 2019-01-29 07:10:14 -0800
commit04b3a053a46909ad65b5fac270e1852eadbd3226 (patch)
tree088b6c62dca7f81d71f92d8c3c361c7ba08adba5 /vulkan/libvulkan/api.cpp
parent684ee5295417fb11f27221a94b7097845fbe8a49 (diff)
Make MotionClassifier 'final'
MotionClassifier's destructor invokes requestExit(), which then invokes the virtual method reset(). If MotionClassifier had a child class, this call to reset() from the destructor would not use the dynamic binding, and thus wouldn't invoke any child class's reset() override. To avoid this potentially buggy and confusing situation, we preemptively declare MotionClassifier 'final', which prevents it from having children classes in the first place. Test: TreeHugger Change-Id: Id78cfe657b4be952b629bc43ce99b6927c833f05
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions