aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp18
-rw-r--r--deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h16
2 files changed, 34 insertions, 0 deletions
diff --git a/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp
new file mode 100644
index 000000000000..90b7eee273d6
--- /dev/null
+++ b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp
@@ -0,0 +1,18 @@
+Fix build with clang7:
+
+ WeeklyTimesheet.cpp:287:37: error: default initialization of an object of const type 'const Lotsofcake::Configuration' requires a user-provided default constructor
+ const Lotsofcake::Configuration configuration;
+
+--- Charm/Lotsofcake/Configuration.cpp.orig 2018-09-03 18:53:25 UTC
++++ Charm/Lotsofcake/Configuration.cpp
+@@ -43,6 +43,10 @@ static void setValueIfNotNull(QSettings
+ }
+ }
+
++Lotsofcake::Configuration::Configuration()
++{
++}
++
+ bool Lotsofcake::Configuration::isConfigured() const
+ {
+ return !username().isEmpty();
diff --git a/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h
new file mode 100644
index 000000000000..2c0563c76498
--- /dev/null
+++ b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h
@@ -0,0 +1,16 @@
+Fix build with clang7:
+
+ WeeklyTimesheet.cpp:287:37: error: default initialization of an object of const type 'const Lotsofcake::Configuration' requires a user-provided default constructor
+ const Lotsofcake::Configuration configuration;
+
+--- Charm/Lotsofcake/Configuration.h.orig 2018-09-03 18:53:17 UTC
++++ Charm/Lotsofcake/Configuration.h
+@@ -36,6 +36,8 @@ namespace Lotsofcake {
+ class Configuration
+ {
+ public:
++ Configuration();
++
+ bool isConfigured() const;
+
+ void importFromTaskExport(const TaskExport &exporter);