]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdmaptool.cc: : use empty() instead of 'size() < 1'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 14:34:05 +0000 (15:34 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:26:22 +0000 (10:26 -0800)
commit4950a1b3b80ab3eb81abae31ec9bb79b06b363a9
tree4ecbe0fa224e4f999b460e34c5a5d414a738ca5d
parentfb6561e74245fd7ecc58898c68ce3a52129974bf
osdmaptool.cc: : use empty() instead of 'size() < 1'

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().

This way the code is more logical.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osdmaptool.cc