clang-tidy: modernize-macro-to-enum
authorColin Clark <colin.clark@cclark.uk>
Wed, 7 Feb 2024 12:26:09 +0000 (12:26 +0000)
committerColin Clark <colin.clark@cclark.uk>
Wed, 7 Feb 2024 12:26:09 +0000 (12:26 +0000)
commita4ce95bc11a58700e29c15d324f9ed4d7c27900a
tree77d8db1169c6bece8f14fc582ca815d4495e515b
parent0028df22bd4cdbab088dac2a98dc2d2f53b25fcf
clang-tidy: modernize-macro-to-enum

- Fix warnings identified by this flag
- Remove the exclude from .clang-tidy file

Clang-tidy fix resulted in indentation dissimilar to that used so far.

This awk script was run on the .diff file:
/^+[A-Z]/  {
sub (/\+/,"+\t",$0)
print
next
}

$0 !~ /^+[A-Z]/  {
print
next
}

The following files were hand-edited:
thumb-standard.cc
ui-bookmark.cc
39 files changed:
src/advanced-exif.cc
src/bar-exif.cc
src/cache-maint.cc
src/cache.cc
src/cellrenderericon.cc
src/collect-io.cc
src/collect-table.cc
src/collect.cc
src/desktop-file.cc
src/dupe.cc
src/editors.cc
src/histogram.cc
src/image-load-dds.cc
src/image-load-psd.cc
src/image-load.cc
src/image-overlay.cc
src/jpeg-parser.cc
src/layout-config.cc
src/layout-image.cc
src/layout-util.cc
src/layout.cc
src/misc.cc
src/pan-view/pan-calendar.cc
src/pan-view/pan-view.cc
src/pixbuf-renderer.cc
src/pixbuf-util.cc
src/preferences.cc
src/print.cc
src/remote.cc
src/renderer-tiles.cc
src/search.cc
src/thumb-standard.cc
src/ui-bookmark.cc
src/ui-help.cc
src/ui-pathsel.cc
src/ui-tree-edit.cc
src/utilops.cc
src/view-file/view-file-icon.cc
src/view-file/view-file-list.cc