Skip to content
Snippets Groups Projects
Commit 4066ad85 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

tidy: match parameter name in declaration and definition

parent 0a119441
No related branches found
No related tags found
1 merge request!234Merge jt
......@@ -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 newDocumentation ) {
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 documentation ) {
auto & documentationEntry = getEntries ( ) [ ext::tie ( algorithm, templateParams ) ].first;
if ( ! documentationEntry.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 ( newDocumentation );
documentationEntry = std::move ( documentation );
}
 
ext::list < std::unique_ptr < AlgorithmRegistry::Entry > > & AlgorithmRegistry::findAbstractionGroup ( const std::string & name, const ext::vector < std::string > & templateParams ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment