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
...@@ -14,7 +14,8 @@ ScriptSettingsBoolean::ScriptSettingsBoolean(BooleanWidget *widget) ...@@ -14,7 +14,8 @@ ScriptSettingsBoolean::ScriptSettingsBoolean(BooleanWidget *widget)
{} {}
ScriptSettingsBoolean::ScriptSettingsBoolean(const ScriptSettingsBoolean &other) ScriptSettingsBoolean::ScriptSettingsBoolean(const ScriptSettingsBoolean &other)
: ScriptSettingsBoolean(other.widget_) : ScriptSettings(other.widget_),
widget_(other.widget_)
{} {}
ScriptSettingsBoolean::~ScriptSettingsBoolean() {} ScriptSettingsBoolean::~ScriptSettingsBoolean() {}
......
...@@ -16,7 +16,8 @@ ScriptSettingsDouble::ScriptSettingsDouble( ...@@ -16,7 +16,8 @@ ScriptSettingsDouble::ScriptSettingsDouble(
ScriptSettingsDouble::ScriptSettingsDouble( ScriptSettingsDouble::ScriptSettingsDouble(
const ScriptSettingsDouble &other) const ScriptSettingsDouble &other)
: ScriptSettingsDouble(other.widget_) : ScriptSettings(other.widget_),
widget_(other.widget_)
{} {}
ScriptSettingsDouble::~ScriptSettingsDouble() ScriptSettingsDouble::~ScriptSettingsDouble()
......
...@@ -16,7 +16,8 @@ ScriptSettingsVector::ScriptSettingsVector( ...@@ -16,7 +16,8 @@ ScriptSettingsVector::ScriptSettingsVector(
ScriptSettingsVector::ScriptSettingsVector( ScriptSettingsVector::ScriptSettingsVector(
const ScriptSettingsVector &other) const ScriptSettingsVector &other)
: ScriptSettingsVector(other.widget_) : ScriptSettings(other.widget_),
widget_(other.widget_)
{} {}
ScriptSettingsVector::~ScriptSettingsVector() ScriptSettingsVector::~ScriptSettingsVector()
......
Supports Markdown
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