Commit 97aa5c2c authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use "= delete" to get rid of assignment operator, not private section

parent 95ea14ec
......@@ -62,12 +62,6 @@ AbstractTypeData::~AbstractTypeData()
freeAppendedLists();
}
AbstractTypeData& AbstractTypeData::operator=(const AbstractTypeData&)
{
Q_ASSERT(0);
return *this;
}
IntegralTypeData::IntegralTypeData()
{
......
......@@ -58,6 +58,8 @@ public:
/// Destructor.
~AbstractTypeData();
AbstractTypeData& operator=(const AbstractTypeData&) = delete;
/**
* Internal setup for the data structure.
*
......@@ -97,9 +99,6 @@ public:
void freeDynamicData()
{
}
private:
AbstractTypeData& operator=(const AbstractTypeData&);
};
/// Private data structure for IntegralType
......
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