Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
21b90b72
Commit
21b90b72
authored
8 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm selection_version
parent
e2fa6541
No related branches found
Branches containing commit
No related tags found
1 merge request
!2681
follow-up
Pipeline
#152401
passed
8 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/Model/Descriptor/PolyItem.h
+0
-3
0 additions, 3 deletions
GUI/Model/Descriptor/PolyItem.h
GUI/Model/Util/UtilXML.h
+0
-1
0 additions, 1 deletion
GUI/Model/Util/UtilXML.h
with
0 additions
and
4 deletions
GUI/Model/Descriptor/PolyItem.h
+
0
−
3
View file @
21b90b72
...
@@ -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
...);
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/Util/UtilXML.h
+
0
−
1
View file @
21b90b72
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment