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

don't start with nullptr

parent 1c99d158
No related branches found
No related tags found
1 merge request!2367InstrumentsSet use OwningVector instead of PolyVector
......@@ -66,9 +66,8 @@ void InstrumentsSet::readFrom(QXmlStreamReader* r)
// instrument
if (tag == Tag::Instrument) {
PolyItem<InstrumentsCatalog> p;
p.setCertainItem(nullptr);
p.readFrom(r);
m_instruments.emplace_polyitem_back(std::move(p));
m_instruments.back().readFrom(r);
XML::gotoEndElementOfTag(r, tag);
// selected index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment