diff OrthancCppClient/Patient.cpp @ 496:7f7a2d174acb laaw

preparing Laaw packaging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Jul 2013 17:07:12 +0200
parents f3d4193c571a
children ec19da4a1fe7
line wrap: on
line diff
--- a/OrthancCppClient/Patient.cpp	Wed Jul 17 13:45:28 2013 +0200
+++ b/OrthancCppClient/Patient.cpp	Wed Jul 17 17:07:12 2013 +0200
@@ -40,7 +40,8 @@
   void Patient::ReadPatient()
   {
     Orthanc::HttpClient client(connection_.GetHttpClient());
-    client.SetUrl(connection_.GetOrthancUrl() + "/patients/" + id_);
+    client.SetUrl(std::string(connection_.GetOrthancUrl()) + "/patients/" + id_);
+
     Json::Value v;
     if (!client.Apply(patient_))
     {
@@ -55,7 +56,7 @@
   }
 
   Patient::Patient(const OrthancConnection& connection,
-                   const std::string& id) :
+                   const char* id) :
     connection_(connection),
     id_(id),
     studies_(*this)