BIND 10 master, updated. e4475a2cd90aa4247482b1a4b96ec3dac21b802b [master] Update emptiness checks to be more efficient (cppcheck)
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Nov 1 13:08:01 UTC 2013
The branch, master has been updated
via e4475a2cd90aa4247482b1a4b96ec3dac21b802b (commit)
from 2696320ef2eda1e405748b89b854ac517fa3506c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e4475a2cd90aa4247482b1a4b96ec3dac21b802b
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Nov 1 10:31:01 2013 +0530
[master] Update emptiness checks to be more efficient (cppcheck)
Reviewed by Thomas Markwalder on Jabber.
-----------------------------------------------------------------------
Summary of changes:
src/hooks/dhcp/user_chk/subnet_select_co.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/hooks/dhcp/user_chk/subnet_select_co.cc b/src/hooks/dhcp/user_chk/subnet_select_co.cc
index 31fbd6f..3e08f13 100644
--- a/src/hooks/dhcp/user_chk/subnet_select_co.cc
+++ b/src/hooks/dhcp/user_chk/subnet_select_co.cc
@@ -121,7 +121,7 @@ int subnet4_select(CalloutHandle& handle) {
// Get subnet collection. If it's empty just bail nothing to do.
const isc::dhcp::Subnet4Collection *subnets = NULL;
handle.getArgument("subnet4collection", subnets);
- if (subnets->size() == 0) {
+ if (subnets->empty()) {
return 0;
}
@@ -186,7 +186,7 @@ int subnet6_select(CalloutHandle& handle) {
// Get subnet collection. If it's empty just bail nothing to do.
const isc::dhcp::Subnet6Collection *subnets = NULL;
handle.getArgument("subnet6collection", subnets);
- if (subnets->size() == 0) {
+ if (subnets->empty()) {
return 0;
}
More information about the bind10-changes
mailing list