From c8e2ab6781192a4e543deee3f2815cd5db2f2ea1 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@gmail.com>
Date: Thu, 4 Jan 2024 14:31:21 +0100
Subject: [PATCH] db/upnp/Object: smaller enums

---
 src/db/plugins/upnp/Object.hxx | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/db/plugins/upnp/Object.hxx b/src/db/plugins/upnp/Object.hxx
index f7f81b1de..ff1dbf747 100644
--- a/src/db/plugins/upnp/Object.hxx
+++ b/src/db/plugins/upnp/Object.hxx
@@ -1,11 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 // Copyright The Music Player Daemon Project
 
-#ifndef MPD_UPNP_OBJECT_HXX
-#define MPD_UPNP_OBJECT_HXX
+#pragma once
 
 #include "tag/Tag.hxx"
 
+#include <cstdint>
 #include <string>
 
 /**
@@ -15,7 +15,7 @@
  */
 class UPnPDirObject {
 public:
-	enum class Type {
+	enum class Type : uint_least8_t {
 		UNKNOWN,
 		ITEM,
 		CONTAINER,
@@ -28,7 +28,7 @@ public:
 	// items are special to us, and so should playlists, but I've not
 	// seen one of the latter yet (servers seem to use containers for
 	// playlists).
-	enum class ItemClass {
+	enum class ItemClass : uint_least8_t {
 		UNKNOWN,
 		MUSIC,
 		PLAYLIST,
@@ -88,5 +88,3 @@ public:
 			 item_class != UPnPDirObject::ItemClass::UNKNOWN);
 	}
 };
-
-#endif /* _UPNPDIRCONTENT_H_X_INCLUDED_ */