]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
obj_bencher.cc: use empty() instead of 'size() == 0' to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 16:22:41 +0000 (17:22 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:38 +0000 (10:27 -0800)
commitd6c4a62fc8fc8d3ac87086ce1624b2105d08da39
tree9f05665d4b016e4e8534187816449b83802d22d5
parente719e0a286687a26d37f743fc3be11d25bae6dad
obj_bencher.cc: use empty() instead of 'size() == 0' 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/common/obj_bencher.cc