diff options
| author | Jani Nikula <jani@nikula.org> | 2017-10-07 11:44:05 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-10-09 22:27:16 -0300 |
| commit | 008a5e92eb157e2bb8622cb2fbf644deba5ba4b4 (patch) | |
| tree | 12c403226e076d230ac54fa59c98726fcafefb38 /lib/directory.cc | |
| parent | 0f314c0c99befea599a68bea51d759b4133efef6 (diff) | |
lib: convert notmuch_bool_t to stdbool internally
C99 stdbool turned 18 this year. There really is no reason to use our
own, except in the library interface for backward
compatibility. Convert the lib internally to stdbool.
Diffstat (limited to 'lib/directory.cc')
| -rw-r--r-- | lib/directory.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/directory.cc b/lib/directory.cc index 5de3319c..4fcb0177 100644 --- a/lib/directory.cc +++ b/lib/directory.cc @@ -103,7 +103,7 @@ _notmuch_directory_create (notmuch_database_t *notmuch, notmuch_directory_t *directory; notmuch_private_status_t private_status; const char *db_path; - notmuch_bool_t create = (flags & NOTMUCH_FIND_CREATE); + bool create = (flags & NOTMUCH_FIND_CREATE); if (! (notmuch->features & NOTMUCH_FEATURE_DIRECTORY_DOCS)) { *status_ret = NOTMUCH_STATUS_UPGRADE_REQUIRED; @@ -189,7 +189,7 @@ _notmuch_directory_create (notmuch_database_t *notmuch, _notmuch_database_log (notmuch, "A Xapian exception occurred creating a directory: %s.\n", error.get_msg().c_str()); - notmuch->exception_reported = TRUE; + notmuch->exception_reported = true; notmuch_directory_destroy (directory); directory = NULL; *status_ret = NOTMUCH_STATUS_XAPIAN_EXCEPTION; @@ -234,7 +234,7 @@ notmuch_directory_set_mtime (notmuch_directory_t *directory, _notmuch_database_log (notmuch, "A Xapian exception occurred setting directory mtime: %s.\n", error.get_msg().c_str()); - notmuch->exception_reported = TRUE; + notmuch->exception_reported = true; return NOTMUCH_STATUS_XAPIAN_EXCEPTION; } @@ -301,7 +301,7 @@ notmuch_directory_delete (notmuch_directory_t *directory) _notmuch_database_log (directory->notmuch, "A Xapian exception occurred deleting directory entry: %s.\n", error.get_msg().c_str()); - directory->notmuch->exception_reported = TRUE; + directory->notmuch->exception_reported = true; status = NOTMUCH_STATUS_XAPIAN_EXCEPTION; } notmuch_directory_destroy (directory); |
