summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2018-09-05 08:04:01 -0700
committerGreg Kaiser <gkaiser@google.com>2018-09-06 06:18:01 -0700
commit33b07ba96c6a22bdd4a1132c0b15b25873fc0c26 (patch)
tree8633aa65aa72257fbc6711951ac09b32122fb918 /base/errors_unix.cpp
parent662a3a6cc3628bb498b2047dcd733e65dda09c0d (diff)
UsbTransportSniffer: Defensively use 'final'
UsbTransportSniffer invokes the virtual method Close() within its destructor. This usage is fine right now, but if a future class inherited from UsbTransportSniffer and overrode the Close() method, then this destructor would not act as expected. To protect against this, we declare Close() 'final' in UsbTransportSniffer, and add a comment. Test: Treehugger Change-Id: I6182d84e7caf67cb06f37c22c6203ad6d6e57f34
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions