]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
KeyValueDBMemory.cc: use empty() instead of size() == 0 73/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:25:49 +0000 (11:25 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:25:49 +0000 (11:25 +0100)
commit88555e72850219a121ece09e9ea0a269392efee4
tree69a25f886b7e36159f38b2e8e488586499dadbe9
parent4059d94a52e4d4c1e636e61e10281ec2110b38d5
KeyValueDBMemory.cc: use empty() instead of size() == 0

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/test/ObjectMap/KeyValueDBMemory.cc