]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCap.cc: use empty() instead of if(size())
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 24 Jun 2013 12:14:38 +0000 (14:14 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 24 Jun 2013 12:14:38 +0000 (14:14 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/MonCap.cc

index 6f1055091e003456a7c6ca8aedf2bf0c4a8b67d0..1114ca3b9da35ac245cae5a505d19bd35ae6a1c6 100644 (file)
@@ -75,7 +75,7 @@ ostream& operator<<(ostream& out, const MonCapGrant& m)
   }
   if (m.command.length()) {
     out << " command " << maybe_quote_string(m.command);
-    if (m.command_args.size()) {
+    if (!m.command_args.empty()) {
       out << " with";
       for (map<string,StringConstraint>::const_iterator p = m.command_args.begin();
           p != m.command_args.end();