notmuch_tags_has_more: Fix to use string.empty rather than string.size
authorCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 13:06:20 +0000 (06:06 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 13:06:20 +0000 (06:06 -0700)
I'm really interested in the length of the data here, not the size
of the storage.

message.cc

index 65e5ad78a269b6da86ef5a3b7c289871d8096712..ee0e8e1f80502f81aa74c7cfc3994866e852ef41 100644 (file)
@@ -522,7 +522,7 @@ notmuch_tags_has_more (notmuch_tags_t *tags)
        return FALSE;
 
     s = *tags->iterator;
-    if (s.size () && s[0] == 'L')
+    if (! s.empty () && s[0] == 'L')
        return TRUE;
     else
        return FALSE;