Replace single value enums with constexpr <type>
[geeqie.git] / src / remote.cc
index c7ce752..7d47b17 100644 (file)
 #include "utilops.h"
 #include "view-file.h"
 
-enum {
-       SERVER_MAX_CLIENTS = 8
-};
-
-enum {
-       REMOTE_SERVER_BACKLOG = 4
-};
-
-
 #ifndef UNIX_PATH_MAX
 #define UNIX_PATH_MAX 108
 #endif
 
+namespace
+{
+
+constexpr guint SERVER_MAX_CLIENTS = 8;
+constexpr int REMOTE_SERVER_BACKLOG = 4;
+
+} // namespace
 
 static RemoteConnection *remote_client_open(const gchar *path);
 static gint remote_client_send(RemoteConnection *rc, const gchar *text);