diff --git a/ns-skeleton/src/NsSkelConfiguration.cpp b/ns-skeleton/src/NsSkelConfiguration.cpp index e700d0e..3bc0a04 100644 --- a/ns-skeleton/src/NsSkelConfiguration.cpp +++ b/ns-skeleton/src/NsSkelConfiguration.cpp @@ -117,12 +117,12 @@ bool NsSkelConfiguration::hasParameter(string paramName) { namespace nanoservices { - template<> - NsSkelJsonPtr NsSkelConfiguration::getParameter(std::string paramName, - NsSkelJsonPtr defaultVal) throw(nanoservices::NsException) { - if (!hasParameter(paramName)) { - return defaultVal; - } - return _configuration->find(paramName)->second; +template<> +NsSkelJsonPtr NsSkelConfiguration::getParameter(const std::string ¶mName, + NsSkelJsonPtr defaultVal) throw(nanoservices::NsException) { + if (!hasParameter(paramName)) { + return defaultVal; } + return _configuration->find(paramName)->second; +} }