From 9dff2dd0b1d0a5d23a1184c2b172308495388c34 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sat, 17 Mar 2012 13:34:29 +0100 Subject: [PATCH] Give background_type a default value, as some compilers sometimes wrongly assume that it might be used uninitialized --- src/playlist/playlistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index 18d664b0b..981d7905f 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -978,7 +978,7 @@ void PlaylistView::ReloadSettings() { // Background: QVariant q_playlistview_background_type = s.value(kSettingBackgroundImageType); - BackgroundImageType background_type; + BackgroundImageType background_type(Default); // bg_enabled should also be checked for backward compatibility (in releases // <= 1.0, there was just a boolean to activate/deactivate the background) QVariant bg_enabled = s.value("bg_enabled");