lib: replace some #define with constexpr

minor cleanup.
This commit is contained in:
Dirk-Jan C. Binnema
2021-02-11 18:54:25 +02:00
parent 2967a2e251
commit a3c6e74869
4 changed files with 24 additions and 30 deletions

View File

@ -683,7 +683,7 @@ static gchar*
get_msgid (MuMsgFile *self, gboolean *do_free)
{
const char *msgid{g_mime_message_get_message_id (self->_mime_msg)};
if (msgid && strlen(msgid) < MU_STORE_MAX_TERM_LENGTH) {
if (msgid && strlen(msgid) < Store::MaxTermLength) {
*do_free = FALSE;
return (char*)msgid;
}