]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/CInode.cc: use !empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 16:53:41 +0000 (17:53 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:39 +0000 (10:27 -0800)
commita65c71cae300365c8f10da26531c5e217e195357
tree31556fcb4714c99a1f16568eda9e431c16e21c60
parentd0896404a9a5acd5430aff62d4684dc5ccb00ea6
mds/CInode.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/mds/CInode.cc