Skip to content
Snippets Groups Projects
Commit 1857d650 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

qt: soutchain: make soutchain copyable

Qt requires container elements to be copyable, https://bugreports.qt.io/browse/QTBUG-54685
but class with const members can't be copy-assignable. Remove the const values
so that we can copy SoutChain.

This patch fix the compilation with Clang 9.
parent d43d77f3
No related branches found
No related tags found
No related merge requests found
Pipeline #10797 passed with stage
in 33 minutes and 7 seconds
......@@ -45,7 +45,7 @@ public:
private:
typedef QPair<QString, SoutOption> OptionPairType;
typedef QList<OptionPairType> OptionsType;
const QString moduleName;
QString moduleName;
OptionsType options;
};
......@@ -81,9 +81,9 @@ public:
private:
enum Kind{ String, Nested };
const Kind kind;
const QString stringValue;
const SoutModule nestedModule;
Kind kind;
QString stringValue;
SoutModule nestedModule;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment