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
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
4066ad85
Commit
4066ad85
authored
2 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
tidy: match parameter name in declaration and definition
parent
0a119441
No related branches found
Branches containing commit
No related tags found
1 merge request
!234
Merge jt
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alib2abstraction/src/registry/AlgorithmRegistry.cpp
+4
-4
4 additions, 4 deletions
alib2abstraction/src/registry/AlgorithmRegistry.cpp
with
4 additions
and
4 deletions
alib2abstraction/src/registry/AlgorithmRegistry.cpp
+
4
−
4
View file @
4066ad85
...
...
@@ -64,15 +64,15 @@ void AlgorithmRegistry::setDocumentation ( const std::string & algorithm, const
(
*
iter
)
->
setDocumentation
(
std
::
move
(
documentation
)
);
}
void
AlgorithmRegistry
::
setCommonDocumentation
(
const
std
::
string
&
algorithm
,
const
ext
::
vector
<
std
::
string
>
&
templateParams
,
std
::
string
newD
ocumentation
)
{
auto
&
documentation
=
getEntries
(
)
[
ext
::
tie
(
algorithm
,
templateParams
)
].
first
;
if
(
!
documentation
.
empty
(
)
)
{
void
AlgorithmRegistry
::
setCommonDocumentation
(
const
std
::
string
&
algorithm
,
const
ext
::
vector
<
std
::
string
>
&
templateParams
,
std
::
string
d
ocumentation
)
{
auto
&
documentation
Entry
=
getEntries
(
)
[
ext
::
tie
(
algorithm
,
templateParams
)
].
first
;
if
(
!
documentation
Entry
.
empty
(
)
)
{
if
(
templateParams
.
empty
(
)
)
throw
std
::
invalid_argument
(
ext
::
concat
(
"Documentation of entry "
,
algorithm
,
" is already set."
)
);
else
throw
std
::
invalid_argument
(
ext
::
concat
(
"Documentation of templated entry "
,
algorithm
,
" < "
,
templateParams
,
" > is already set."
)
);
}
documentation
=
std
::
move
(
newD
ocumentation
);
documentation
Entry
=
std
::
move
(
d
ocumentation
);
}
ext
::
list
<
std
::
unique_ptr
<
AlgorithmRegistry
::
Entry
>
>
&
AlgorithmRegistry
::
findAbstractionGroup
(
const
std
::
string
&
name
,
const
ext
::
vector
<
std
::
string
>
&
templateParams
)
{
...
...
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