From 98a7d8da6cd88ddb335fbc375ef546a09ae8ea16 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Mar 2020 20:51:10 +0100 Subject: [PATCH] playlist/xspf: use C++11 initializer --- src/playlist/plugins/XspfPlaylistPlugin.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/playlist/plugins/XspfPlaylistPlugin.cxx b/src/playlist/plugins/XspfPlaylistPlugin.cxx index b266830f9..4a4b240bf 100644 --- a/src/playlist/plugins/XspfPlaylistPlugin.cxx +++ b/src/playlist/plugins/XspfPlaylistPlugin.cxx @@ -45,7 +45,7 @@ struct XspfParser { enum { ROOT, PLAYLIST, TRACKLIST, TRACK, LOCATION, - } state; + } state = ROOT; /** * The current tag within the "track" element. This is only @@ -60,9 +60,6 @@ struct XspfParser { std::string location; TagBuilder tag_builder; - - XspfParser() - :state(ROOT) {} }; static void XMLCALL