# HG changeset patch # User Sebastien Jodogne # Date 1373633597 -7200 # Node ID 456b9d2e9af43cd13abf3de51ee1269a129664fb # Parent 322c1b497036687ee34a0c036b9d385cafa96076 rename methods for clarity diff -r 322c1b497036 -r 456b9d2e9af4 OrthancCppClient/HttpClient.cpp --- a/OrthancCppClient/HttpClient.cpp Fri Jul 12 14:42:27 2013 +0200 +++ b/OrthancCppClient/HttpClient.cpp Fri Jul 12 14:53:17 2013 +0200 @@ -204,8 +204,8 @@ } - void HttpClient::SetPassword(const char* username, - const char* password) + void HttpClient::SetCredentials(const char* username, + const char* password) { std::string s = std::string(username) + ":" + std::string(password); CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_USERPWD, s.c_str())); diff -r 322c1b497036 -r 456b9d2e9af4 OrthancCppClient/HttpClient.h --- a/OrthancCppClient/HttpClient.h Fri Jul 12 14:42:27 2013 +0200 +++ b/OrthancCppClient/HttpClient.h Fri Jul 12 14:53:17 2013 +0200 @@ -109,8 +109,8 @@ return HttpException::GetDescription(lastStatus_); } - void SetPassword(const char* username, - const char* password); + void SetCredentials(const char* username, + const char* password); static void GlobalInitialize();