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
22a81bcd
Commit
22a81bcd
authored
3 years ago
by
Wuttke, Joachim
Committed by
Wuttke, Joachim
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Serializer: change return type; sort read before write
parent
1deca841
No related branches found
No related tags found
1 merge request
!707
Split serializer
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/Model/XML/Serializer.cpp
+0
-10
0 additions, 10 deletions
GUI/Model/XML/Serializer.cpp
GUI/Model/XML/Serializer.h
+2
-2
2 additions, 2 deletions
GUI/Model/XML/Serializer.h
with
2 additions
and
12 deletions
GUI/Model/XML/Serializer.cpp
+
0
−
10
View file @
22a81bcd
...
...
@@ -32,16 +32,6 @@ constexpr auto Version("version");
}
// namespace
bool
Serializer
::
xmlReader
()
const
{
return
m_r
;
}
bool
Serializer
::
xmlWriter
()
const
{
return
m_w
;
}
void
Serializer
::
writeVersion
(
unsigned
version
)
const
{
if
(
!
m_w
)
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/XML/Serializer.h
+
2
−
2
View file @
22a81bcd
...
...
@@ -40,8 +40,8 @@ public:
{
}
bool
xmlReader
()
const
;
//!< Returns tr
ue if this is a reade
r.
bool
xmlWriter
()
const
;
//!< Returns tr
ue if this is a write
r.
QXmlStreamWriter
*
xmlWriter
()
{
return
m_w
;
}
//!< Returns
s
tr
eam writer or nullpt
r.
QXmlStreamReader
*
xmlReader
()
{
return
m_r
;
}
//!< Returns
s
tr
eam reader or nullpt
r.
//! As writer, serializes the given version number. As reader, does nothing.
void
writeVersion
(
unsigned
version
)
const
;
...
...
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