Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Admin message
Hello
GitLab will be updated tonight at 22:00. Expect short outage.
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
420c955d
Commit
420c955d
authored
7 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
add const ref in compose argument
parent
4c5bd818
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alib2common/src/primitive/String.cpp
+2
-2
2 additions, 2 deletions
alib2common/src/primitive/String.cpp
alib2common/src/primitive/String.h
+2
-2
2 additions, 2 deletions
alib2common/src/primitive/String.h
with
4 additions
and
4 deletions
alib2common/src/primitive/String.cpp
+
2
−
2
View file @
420c955d
...
...
@@ -68,7 +68,7 @@ void String::compose(ext::deque<sax::Token>& out) const {
compose
(
out
,
this
->
getData
());
}
void
String
::
compose
(
ext
::
deque
<
sax
::
Token
>&
out
,
std
::
string
primitive
)
{
void
String
::
compose
(
ext
::
deque
<
sax
::
Token
>&
out
,
const
std
::
string
&
primitive
)
{
out
.
emplace_back
(
primitive
::
String
::
getXmlTagName
(),
sax
::
Token
::
TokenType
::
START_ELEMENT
);
out
.
emplace_back
(
primitive
,
sax
::
Token
::
TokenType
::
CHARACTER
);
out
.
emplace_back
(
primitive
::
String
::
getXmlTagName
(),
sax
::
Token
::
TokenType
::
END_ELEMENT
);
...
...
@@ -95,7 +95,7 @@ std::string xmlApi<std::string>::xmlTagName() {
return
primitive
::
String
::
getXmlTagName
();
}
void
xmlApi
<
std
::
string
>::
compose
(
ext
::
deque
<
sax
::
Token
>&
output
,
std
::
string
data
)
{
void
xmlApi
<
std
::
string
>::
compose
(
ext
::
deque
<
sax
::
Token
>&
output
,
const
std
::
string
&
data
)
{
primitive
::
String
::
compose
(
output
,
data
);
}
...
...
This diff is collapsed.
Click to expand it.
alib2common/src/primitive/String.h
+
2
−
2
View file @
420c955d
...
...
@@ -66,7 +66,7 @@ public:
static std::string parseRaw ( ext::deque < sax::Token >::iterator & input );
void compose ( ext::deque < sax::Token > & out ) const;
static void compose ( ext::deque < sax::Token > & out, std::string primitive );
static void compose ( ext::deque < sax::Token > & out,
const
std::string
&
primitive );
virtual PrimitiveBase * inc ( ) &&;
...
...
@@ -86,7 +86,7 @@ struct xmlApi < std::string > {
static std::string parse ( ext::deque < sax::Token >::iterator & input );
static bool first ( const ext::deque < sax::Token >::const_iterator & input );
static std::string xmlTagName ( );
static void compose ( ext::deque < sax::Token > & output, std::string data );
static void compose ( ext::deque < sax::Token > & output,
const
std::string
&
data );
};
} /* namespace alib */
...
...
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