diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-08-21 19:38:30 +0200 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2016-10-18 09:49:57 +0000 |
commit | d38b92e972be130df3e6c908fb7e7bf1729ab7fb (patch) | |
tree | a6a6d5a84e0f4a227597af61c649a05b24f3307c /debian/changelog | |
parent | 0a4a6c120040c8dd0744f745e08f24624df62647 (diff) |
tbf: add llc_queue_size() to check llc_queue is valid before calling size()
gcc6 is optimizing if (!this) {CODE} as this is assumed to never be a
std::nullptr here. Move the null check to the caller. In preparation of
removing the check within llc_queue->size(), all callers must check the object
before calling it. Make sure of that: make the llc_queue() access function
protected and offer only a public llc_queue_size() function that incorporates
the NULL check. All current callers are only interested in the
llc_queue_size().
Tweaked-by: nhofmeyr
Change-Id: I88cc3180f8f86785e3f07981895dabddf50b60a2
Diffstat (limited to 'debian/changelog')
0 files changed, 0 insertions, 0 deletions