Skip to content
Snippets Groups Projects
Commit e5107719 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

MasksSet::maskItemsQ() explicitly copy pointers

parent 2ecceab8
No related branches found
No related tags found
1 merge request!2372convert MasksSets from PolyVector to OwningVector (#914 1/3)
...@@ -32,7 +32,10 @@ MasksSet::~MasksSet() = default; ...@@ -32,7 +32,10 @@ MasksSet::~MasksSet() = default;
QVector<MaskItem*> MasksSet::maskItemsQ() const QVector<MaskItem*> MasksSet::maskItemsQ() const
{ {
return m_mask_items.toQVector(); QVector<MaskItem*> ret;
for (MaskItem* t : m_mask_items.toQVector())
ret << t;
return ret;
} }
void MasksSet::insertMask(int row, MaskItem* maskItem) void MasksSet::insertMask(int row, MaskItem* maskItem)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment