]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Monitor.cc: use empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Feb 2013 16:06:36 +0000 (17:06 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:01:29 +0000 (11:01 +0100)
commit7a81b07f2434f4e8ca9f95b7fac35116c203df81
treeaefb00dc9859caf1a729005c56baa38491e3a798
parentaa79077c2442e518c11f3d1885461d734909370b
Monitor.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/Monitor.cc