src/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 3 Oct 2020 05:34:10 +0000 (07:34 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 27 Sep 2020 15:25:40 +0000 (17:25 +0200)
src/ui/gui/psppire-text-file.c

index 7460104c504cb1f0115c49f58b77ba2351586154..ea74fefee373ffb49dba8369440c3db404eb13db 100644 (file)
@@ -41,11 +41,13 @@ enum
     PROP_LINE_COUNT
   };
 
-enum {MAX_LINE_LEN = 16384};  /* Max length of an acceptable line. */
 
 static void
 read_lines (PsppireTextFile *tf)
 {
+  /* Max length of an acceptable line. */
+  static const int MAX_LINE_LEN = 16384;
+
   if (tf->file_name && 0 != g_strcmp0 ("unset", tf->encoding))
     {
       struct line_reader *reader = line_reader_for_file (tf->encoding, tf->file_name, O_RDONLY);