]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
HashIndex.cc: use empty() instead of size() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:58:45 +0000 (14:58 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:58:45 +0000 (14:58 +0100)
commit4893def5690f811e2764c3083a63a6093e09a80e
tree7a9d837ce387e146440bc8b752405c5e15263357
parentf65679b47ea4cac76425e45a6092710ed16b97e1
HashIndex.cc: use empty() instead of size() to check for emptiness

Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/HashIndex.cc