Replace single value enums with constexpr <type>
[geeqie.git] / src / utilops.cc
index b50741a..daf8b72 100644 (file)
 namespace
 {
 
+constexpr gint DIALOG_WIDTH = 750;
+
+/* thumbnail spec has a max depth of 4 (.thumb??/fail/appname/??.png) */
+constexpr gint UTILITY_DELETE_MAX_DEPTH = 5;
+
 struct PixmapErrors
 {
        GdkPixbuf *error;
@@ -94,11 +99,7 @@ GdkPixbuf *file_util_get_error_icon(FileData *fd, GList *list, GtkWidget *)
        return pe.apply;
 }
 
-}
-
-enum {
-       DIALOG_WIDTH = 750
-};
+} // namespace
 
 enum ClipboardDestination {
        CLIPBOARD_TEXT_PLAIN    = 0,
@@ -501,11 +502,6 @@ enum {
        UTILITY_LIST_MIN_HEIGHT = 150
 };
 
-/* thumbnail spec has a max depth of 4 (.thumb??/fail/appname/??.png) */
-enum {
-       UTILITY_DELETE_MAX_DEPTH = 5
-};
-
 static UtilityData *file_util_data_new(UtilityType type)
 {
        UtilityData *ud;