Commit a5f8eff2 authored by Volker Krause's avatar Volker Krause
Browse files

Prevent accidental slicing of polymorphic types

Found by clazy.
parent 36c685e9
......@@ -20,6 +20,10 @@
using namespace UserFeedback;
SurveyTargetExpressionDataProvider::SurveyTargetExpressionDataProvider()
{
}
SurveyTargetExpressionDataProvider::~SurveyTargetExpressionDataProvider()
{
}
......
......@@ -32,8 +32,12 @@ class SurveyTargetExpression;
class SurveyTargetExpressionDataProvider
{
public:
SurveyTargetExpressionDataProvider();
virtual ~SurveyTargetExpressionDataProvider();
virtual QVariant sourceData(const QString &sourceName) const = 0;
private:
Q_DISABLE_COPY(SurveyTargetExpressionDataProvider)
};
class SurveyTargetExpressionEvaluator
......
......@@ -39,6 +39,7 @@ public:
SurveyTargetExpression *expression() const;
private:
Q_DISABLE_COPY(SurveyTargetExpressionParser)
SurveyTargetExpression *m_expression;
};
......
......@@ -68,6 +68,7 @@ public:
}
private:
Q_DISABLE_COPY(AggregationElementEditorCreator)
AggregationElementModel *m_model;
};
......
......@@ -37,6 +37,7 @@ public:
void setProduct(const Product &product);
private:
Q_DISABLE_COPY(SchemaEntryItemEditorFactory)
std::unique_ptr<AggregationElementModel> m_elementModel;
};
......
......@@ -30,6 +30,9 @@ public:
QString name;
Provider::StatisticsCollectionMode mode;
private:
Q_DISABLE_COPY(AbstractDataSourcePrivate)
};
}
......
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