diff OrthancCppClient/Study.h @ 500:ec19da4a1fe7 laaw

fix api
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Jul 2013 22:31:22 +0200
parents ddeae3c3a8c2
children 9d2592c08919
line wrap: on
line diff
--- a/OrthancCppClient/Study.h	Wed Jul 17 17:42:18 2013 +0200
+++ b/OrthancCppClient/Study.h	Wed Jul 17 22:31:22 2013 +0200
@@ -57,7 +57,7 @@
 
   public:
     Study(const OrthancConnection& connection,
-          const std::string& id);
+          const char* id);
 
     void Reload()
     {
@@ -74,12 +74,12 @@
       return dynamic_cast<Series&>(series_.GetItem(index));
     }
 
-    const std::string& GetId() const
+    const char* GetId() const
     {
-      return id_;
+      return id_.c_str();
     }
 
-    std::string GetMainDicomTag(const char* tag, 
+    const char* GetMainDicomTag(const char* tag, 
                                 const char* defaultValue) const;
   };
 }