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

rm selection_version

parent e2fa6541
No related branches found
No related tags found
1 merge request!2681follow-up
Pipeline #152401 passed
...@@ -135,7 +135,6 @@ template <typename C> void PolyItem<C>::writeItemTo(const BaseType* t, QXmlStrea ...@@ -135,7 +135,6 @@ template <typename C> void PolyItem<C>::writeItemTo(const BaseType* t, QXmlStrea
XML::writeAttribute(w, XML::Attrib::type, typeIndex); XML::writeAttribute(w, XML::Attrib::type, typeIndex);
// The next line allows to see the name of item type in XML. May be skipped while reading. // The next line allows to see the name of item type in XML. May be skipped while reading.
XML::writeAttribute(w, XML::Attrib::name, C::uiInfo(C::type(t)).menuEntry); XML::writeAttribute(w, XML::Attrib::name, C::uiInfo(C::type(t)).menuEntry);
XML::writeAttribute(w, XML::Attrib::selection_version, uint(1));
if (t) if (t)
t->writeTo(w); t->writeTo(w);
} }
...@@ -151,8 +150,6 @@ void PolyItem<C>::writeChosen(const BaseType* t, QXmlStreamWriter* w, const QStr ...@@ -151,8 +150,6 @@ void PolyItem<C>::writeChosen(const BaseType* t, QXmlStreamWriter* w, const QStr
template <typename C> template <typename... Args> template <typename C> template <typename... Args>
C::BaseType* PolyItem<C>::readItemFrom(QXmlStreamReader* r, Args... args) C::BaseType* PolyItem<C>::readItemFrom(QXmlStreamReader* r, Args... args)
{ {
const uint sel_ver = XML::readUInt(r, XML::Attrib::selection_version);
Q_UNUSED(sel_ver)
const uint typeIndex = XML::readUInt(r, XML::Attrib::type); const uint typeIndex = XML::readUInt(r, XML::Attrib::type);
const auto type = static_cast<typename C::Type>(typeIndex); const auto type = static_cast<typename C::Type>(typeIndex);
BaseType* t = C::create(type, args...); BaseType* t = C::create(type, args...);
......
...@@ -36,7 +36,6 @@ const QString id("id"); ...@@ -36,7 +36,6 @@ const QString id("id");
const QString index("index"); const QString index("index");
const QString name("name"); const QString name("name");
const QString projectName("projectName"); const QString projectName("projectName");
const QString selection_version("selection_version");
const QString type("type"); const QString type("type");
const QString value("value"); const QString value("value");
const QString xPos("xPos"); const QString xPos("xPos");
......
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