changeset 468:456b9d2e9af4

rename methods for clarity
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2013 14:53:17 +0200
parents 322c1b497036
children a6fe16a31615
files OrthancCppClient/HttpClient.cpp OrthancCppClient/HttpClient.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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()));
--- 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();