Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
a8e1e428
Commit
a8e1e428
authored
Aug 06, 2019
by
Simon Spannagel
Browse files
Roles: allow "ref" as shorthand for "reference"
parent
60021624
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/detector/Detector.cpp
View file @
a8e1e428
...
...
@@ -29,7 +29,7 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) {
std
::
transform
(
role
.
begin
(),
role
.
end
(),
role
.
begin
(),
::
tolower
);
if
(
role
==
"none"
)
{
m_role
|=
DetectorRole
::
NONE
;
}
else
if
(
role
==
"reference"
)
{
}
else
if
(
role
==
"reference"
||
role
==
"ref"
)
{
m_role
|=
DetectorRole
::
REFERENCE
;
}
else
if
(
role
==
"dut"
)
{
m_role
|=
DetectorRole
::
DUT
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment