diff --git a/CondCore/CondDB/interface/CredentialStore.h b/CondCore/CondDB/interface/CredentialStore.h index fc412b212001e..669d5dcc3498f 100644 --- a/CondCore/CondDB/interface/CredentialStore.h +++ b/CondCore/CondDB/interface/CredentialStore.h @@ -7,6 +7,7 @@ #include #include #include +#include // #include "CoralBase/MessageStream.h" @@ -19,10 +20,9 @@ namespace coral { } // namespace coral -std::string to_lower(const std::string& s) { +inline std::string to_lower(const std::string& s) { std::string str(s); - for (auto& c : str) - c = tolower(c); + std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c) { return std::tolower(c); }); return str; } diff --git a/CondCore/CondDB/plugins/RelationalAuthenticationService.cc b/CondCore/CondDB/plugins/RelationalAuthenticationService.cc index df072b5bedd4a..e892326549dfb 100644 --- a/CondCore/CondDB/plugins/RelationalAuthenticationService.cc +++ b/CondCore/CondDB/plugins/RelationalAuthenticationService.cc @@ -16,15 +16,17 @@ #include #include -#include +#include #include "CoralBase/MessageStream.h" cond::RelationalAuthenticationService::RelationalAuthenticationService::RelationalAuthenticationService( const std::string& key) : coral::Service(key), m_authenticationPath(""), m_db(), m_cache(), m_callbackID(0) { - boost::function1 cb(boost::bind( - &cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath, this, _1)); + boost::function1 cb( + boost::bind(&cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath, + this, + boost::placeholders::_1)); coral::Property* pm = dynamic_cast( coral::Context::instance().PropertyManager().property(auth::COND_AUTH_PATH_PROPERTY));