aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/DatabaseSave.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/DatabaseSave.cxx b/src/DatabaseSave.cxx
index 0b6338013..3153766a8 100644
--- a/src/DatabaseSave.cxx
+++ b/src/DatabaseSave.cxx
@@ -44,9 +44,7 @@
#define DIRECTORY_FS_CHARSET "fs_charset: "
#define DB_TAG_PREFIX "tag: "
-enum {
- DB_FORMAT = 1,
-};
+static constexpr unsigned DB_FORMAT = 1;
void
db_save_internal(FILE *fp, const Directory &music_root)
@@ -69,7 +67,7 @@ bool
db_load_internal(TextFile &file, Directory &music_root, Error &error)
{
char *line;
- int format = 0;
+ unsigned format = 0;
bool found_charset = false, found_version = false;
bool success;
bool tags[TAG_NUM_OF_ITEM_TYPES];