summaryrefslogtreecommitdiff
path: root/audio/sayonara/files/patch-cpp-compile
blob: ae8975b872320e5879f3dd4f85cc282b5bfbc26a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
diff --git src/Components/Covers/Fetcher/Audioscrobbler.cpp src/Components/Covers/Fetcher/Audioscrobbler.cpp
index 2490f8f4..7916ed16 100644
--- src/Components/Covers/Fetcher/Audioscrobbler.cpp
+++ src/Components/Covers/Fetcher/Audioscrobbler.cpp
@@ -30,6 +30,8 @@
 #include <QStringList>
 #include <QUrl>
 
+#include <array>
+
 using Cover::Fetcher::Audioscrobbler;
 
 namespace
@@ -37,7 +39,7 @@ namespace
 	QStringList mapToStringList(const QMap<QString, QString>& map)
 	{
 		auto result = QStringList {};
-		const auto sizes = std::array {"mega", "extralarge", "large", "medium", "small"};
+		const auto sizes = std::array<const char *, 5> {"mega", "extralarge", "large", "medium", "small"};
 		for(const auto size: sizes)
 		{
 			result.push_back(map[size]);
diff --git src/Components/Engine/PipelineExtensions/Changeable.cpp src/Components/Engine/PipelineExtensions/Changeable.cpp
index 654a3c3c..2119e49d 100644
--- src/Components/Engine/PipelineExtensions/Changeable.cpp
+++ src/Components/Engine/PipelineExtensions/Changeable.cpp
@@ -306,6 +306,12 @@ namespace
 	}
 }
 
+static Logger& operator<<(Logger& lhs, const EU::GStringAutoFree& s) 
+{ 
+	const auto * p = s.data();
+	return lhs << (p ? p : "null"); 
+}
+
 namespace PipelineExtensions::Changeable
 {
 	// NOLINTNEXTLINE(*-make-member-function-const)
@@ -360,11 +366,11 @@ namespace PipelineExtensions::Changeable
 		auto parent = EU::AutoUnref(gst_element_get_parent(elementA));
 		auto* parentElement = GST_ELEMENT(*parent);
 		const auto name = EU::GStringAutoFree(gst_element_get_name(element));
-
-		spLog(Log::Debug, __FUNCTION__) << "Remove " << name.data() << " from pipeline";
+		
+		spLog(Log::Debug, __FUNCTION__) << "Remove " << name << " from pipeline";
 		if(!EU::hasElement(GST_BIN(parentElement), element))
 		{
-			spLog(Log::Debug, __FUNCTION__) << "Element " << name.data() << " not in pipeline";
+			spLog(Log::Debug, __FUNCTION__) << "Element " << name << " not in pipeline";
 			return true;
 		}
 
@@ -386,7 +392,7 @@ namespace PipelineExtensions::Changeable
 
 		if(!success)
 		{
-			spLog(Log::Debug, __FUNCTION__) << "Could not remove " << name.data();
+			spLog(Log::Debug, __FUNCTION__) << "Could not remove " << name;
 		}
 
 		return success;
@@ -428,4 +434,4 @@ namespace PipelineExtensions::Changeable
 		return success;
 	}
 }
-#pragma clang diagnostic pop
\ No newline at end of file
+#pragma clang diagnostic pop
diff --git src/Components/Lyrics/LyricWebpageParser.cpp src/Components/Lyrics/LyricWebpageParser.cpp
index b5297b21..53b3b2dc 100644
--- src/Components/Lyrics/LyricWebpageParser.cpp
+++ src/Components/Lyrics/LyricWebpageParser.cpp
@@ -27,6 +27,8 @@
 #include <QTextBlock>
 #include <QTextDocument>
 
+#include <array>
+
 using namespace Lyrics;
 
 namespace
diff --git src/Gui/InfoDialog/GUI_InfoDialog.cpp src/Gui/InfoDialog/GUI_InfoDialog.cpp
index 1752180a..709b8690 100644
--- src/Gui/InfoDialog/GUI_InfoDialog.cpp
+++ src/Gui/InfoDialog/GUI_InfoDialog.cpp
@@ -47,6 +47,8 @@
 #include <QTabBar>
 #include <QTableWidgetItem>
 
+#include <unordered_map>
+
 namespace
 {
 	enum StackedWidgetTab
diff --git src/Gui/Plugins/Engine/GUI_LevelPainter.cpp src/Gui/Plugins/Engine/GUI_LevelPainter.cpp
index 455051bb..98b3ee63 100644
--- src/Gui/Plugins/Engine/GUI_LevelPainter.cpp
+++ src/Gui/Plugins/Engine/GUI_LevelPainter.cpp
@@ -185,7 +185,7 @@ void GUI_LevelPainter::paint()
 
 			else
 			{
-				m->steps[c][r] = std::max(m->steps[c][r] - 1, 0);
+				m->steps[c][r] = std::max(int(m->steps[c][r]) - 1, 0);
 			}
 
 			if(m->steps[c][r] == 0)