]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
DBObjectMap.cc: use empty() instead of size() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:51:28 +0000 (14:51 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:51:28 +0000 (14:51 +0100)
commitb0ec071a6db30b4ee407dee39916614b373d2978
tree14ce54c84ce8b9760e13f6a53bb360acc55bbf92
parentdd855b3ee28a6ffc32d7a01819abb7cd40c00e6e
DBObjectMap.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/DBObjectMap.cc