Commit f5c47b73 authored by Cédric Traizet's avatar Cédric Traizet

PERF: pass string by const reference instead of copy

parent dd4a2451
Pipeline #2398 passed with stages
in 69 minutes and 21 seconds
......@@ -36,7 +36,7 @@ namespace Wrapper
template <class TImageType>
TImageType*
Application
::GetParameterImage(std::string parameter)
::GetParameterImage(std::string const& parameter)
{
typename TImageType::Pointer ret;
......@@ -57,7 +57,7 @@ Application
template <class TImageType>
void
Application
::SetParameterOutputImage(std::string parameter, TImageType* value)
::SetParameterOutputImage(std::string const& parameter, TImageType* value)
{
Parameter* param = GetParameterByKey(parameter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment