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