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