Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
macaon
Commits
fe3724d0
Commit
fe3724d0
authored
5 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Rempalced litteral id by constexpr
parent
3ee8137b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reading_machine/src/Config.cpp
+4
-4
4 additions, 4 deletions
reading_machine/src/Config.cpp
with
4 additions
and
4 deletions
reading_machine/src/Config.cpp
+
4
−
4
View file @
fe3724d0
...
@@ -135,8 +135,8 @@ void Config::printForDebug(FILE * dest) const
...
@@ -135,8 +135,8 @@ void Config::printForDebug(FILE * dest) const
std
::
string
stackStr
=
""
;
std
::
string
stackStr
=
""
;
for
(
auto
&
s
:
stack
)
for
(
auto
&
s
:
stack
)
{
{
if
(
hasColIndex
(
"ID"
))
if
(
hasColIndex
(
idColName
))
stackStr
+=
getLastNotEmptyConst
(
"ID"
,
s
);
stackStr
+=
getLastNotEmptyConst
(
idColName
,
s
);
else
else
stackStr
+=
std
::
to_string
(
s
);
stackStr
+=
std
::
to_string
(
s
);
stackStr
+=
","
;
stackStr
+=
","
;
...
@@ -285,12 +285,12 @@ bool Config::isComment(std::size_t lineIndex) const
...
@@ -285,12 +285,12 @@ bool Config::isComment(std::size_t lineIndex) const
bool
Config
::
isMultiword
(
std
::
size_t
lineIndex
)
const
bool
Config
::
isMultiword
(
std
::
size_t
lineIndex
)
const
{
{
return
hasColIndex
(
"ID"
)
&&
getConst
(
"ID"
,
lineIndex
,
0
).
get
().
find
(
'-'
)
!=
std
::
string
::
npos
;
return
hasColIndex
(
idColName
)
&&
getConst
(
idColName
,
lineIndex
,
0
).
get
().
find
(
'-'
)
!=
std
::
string
::
npos
;
}
}
bool
Config
::
isEmptyNode
(
std
::
size_t
lineIndex
)
const
bool
Config
::
isEmptyNode
(
std
::
size_t
lineIndex
)
const
{
{
return
hasColIndex
(
"ID"
)
&&
getConst
(
"ID"
,
lineIndex
,
0
).
get
().
find
(
'.'
)
!=
std
::
string
::
npos
;
return
hasColIndex
(
idColName
)
&&
getConst
(
idColName
,
lineIndex
,
0
).
get
().
find
(
'.'
)
!=
std
::
string
::
npos
;
}
}
bool
Config
::
isToken
(
std
::
size_t
lineIndex
)
const
bool
Config
::
isToken
(
std
::
size_t
lineIndex
)
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