Skip to content
Snippets Groups Projects
Commit dc1cd333 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Refactor to work around cppcheck false positive.

Still cleaner than adding a linter exception.
parent 0b4f9600
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment