Mercurial > hg > orthanc
diff OrthancCppClient/Study.cpp @ 500:ec19da4a1fe7 laaw
fix api
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Jul 2013 22:31:22 +0200 |
parents | 7f7a2d174acb |
children | 50d9660f960c |
line wrap: on
line diff
--- a/OrthancCppClient/Study.cpp Wed Jul 17 17:42:18 2013 +0200 +++ b/OrthancCppClient/Study.cpp Wed Jul 17 22:31:22 2013 +0200 @@ -57,7 +57,7 @@ } Study::Study(const OrthancConnection& connection, - const std::string& id) : + const char* id) : connection_(connection), id_(id), series_(*this) @@ -66,11 +66,11 @@ ReadStudy(); } - std::string Study::GetMainDicomTag(const char* tag, const char* defaultValue) const + const char* Study::GetMainDicomTag(const char* tag, const char* defaultValue) const { if (study_["MainDicomTags"].isMember(tag)) { - return study_["MainDicomTags"][tag].asString(); + return study_["MainDicomTags"][tag].asCString(); } else {