Commit dc1cd333 authored by Martin Heistermann's avatar Martin Heistermann

Refactor to work around cppcheck false positive.

Still cleaner than adding a linter exception.
parent 0b4f9600
......@@ -14,7 +14,8 @@ ScriptSettingsBoolean::ScriptSettingsBoolean(BooleanWidget *widget)
{}
ScriptSettingsBoolean::ScriptSettingsBoolean(const ScriptSettingsBoolean &other)
: ScriptSettingsBoolean(other.widget_)
: ScriptSettings(other.widget_),
widget_(other.widget_)
{}
ScriptSettingsBoolean::~ScriptSettingsBoolean() {}
......
......@@ -16,7 +16,8 @@ ScriptSettingsDouble::ScriptSettingsDouble(
ScriptSettingsDouble::ScriptSettingsDouble(
const ScriptSettingsDouble &other)
: ScriptSettingsDouble(other.widget_)
: ScriptSettings(other.widget_),
widget_(other.widget_)
{}
ScriptSettingsDouble::~ScriptSettingsDouble()
......
......@@ -16,7 +16,8 @@ ScriptSettingsVector::ScriptSettingsVector(
ScriptSettingsVector::ScriptSettingsVector(
const ScriptSettingsVector &other)
: ScriptSettingsVector(other.widget_)
: ScriptSettings(other.widget_),
widget_(other.widget_)
{}
ScriptSettingsVector::~ScriptSettingsVector()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment