]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon_store_converter.cc: use empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:15:35 +0000 (11:15 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:15:35 +0000 (11:15 +0100)
commite3b27b7b67e138cec150380ae325d24828af30ac
treed322ae95ced00ca475667a7155839c0021b73f71
parented83d4b9df514018b8063d87cc2f2c7c519dd6ca
mon_store_converter.cc: use empty() instead of size()

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/mon_store_converter.cc