From: Carl Worth Date: Fri, 23 Oct 2009 13:06:20 +0000 (-0700) Subject: notmuch_tags_has_more: Fix to use string.empty rather than string.size X-Git-Tag: 0.1~760 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=db93109cfef2de359a1cbfd3dc2ec08be480745e notmuch_tags_has_more: Fix to use string.empty rather than string.size I'm really interested in the length of the data here, not the size of the storage. --- diff --git a/message.cc b/message.cc index 65e5ad78..ee0e8e1f 100644 --- a/message.cc +++ b/message.cc @@ -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;