clang-tidy: modernize-macro-to-enum
[geeqie.git] / src / search.cc
index f35cd43..08400f9 100644 (file)
 
 #include <cmath>
 
-#define DEF_SEARCH_WIDTH  700
-#define DEF_SEARCH_HEIGHT 650
+enum {
+       DEF_SEARCH_WIDTH =  700,
+       DEF_SEARCH_HEIGHT = 650
+};
 
-#define SEARCH_BUFFER_MATCH_LOAD 20
-#define SEARCH_BUFFER_MATCH_HIT  5
-#define SEARCH_BUFFER_MATCH_MISS 1
-#define SEARCH_BUFFER_FLUSH_SIZE 99
+enum {
+       SEARCH_BUFFER_MATCH_LOAD = 20,
+       SEARCH_BUFFER_MATCH_HIT =  5,
+       SEARCH_BUFFER_MATCH_MISS = 1,
+       SEARCH_BUFFER_FLUSH_SIZE = 99
+};
 
 #define FORMAT_CLASS_BROKEN static_cast<FileFormatClass>(FILE_FORMAT_CLASSES + 1)