Replace single value enums with constexpr <type>
[geeqie.git] / src / cache.cc
index 22b8949..6390d22 100644 (file)
  * Currently SimilarityGrid is always assumed to be 32 x 32 RGB. \n
  */
 
+namespace
+{
+
+constexpr gint CACHE_LOAD_LINE_NOISE = 8;
+
+} // namespace
 
 /*
  *-------------------------------------------------------------------
@@ -409,10 +415,6 @@ static gboolean cache_sim_read_similarity(FILE *f, gchar *buf, gint s, CacheData
        return FALSE;
 }
 
-enum {
-       CACHE_LOAD_LINE_NOISE = 8
-};
-
 CacheData *cache_sim_data_load(const gchar *path)
 {
        FILE *f;