Mercurial > hg > orthanc
diff OrthancCppClient/Instance.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/Instance.cpp Wed Jul 17 17:42:18 2013 +0200 +++ b/OrthancCppClient/Instance.cpp Wed Jul 17 22:31:22 2013 +0200 @@ -96,11 +96,11 @@ } } - std::string Instance::GetTagAsString(const char* tag) + const char* Instance::GetTagAsString(const char* tag) const { if (tags_.isMember(tag)) { - return tags_[tag].asString(); + return tags_[tag].asCString(); } else { @@ -108,7 +108,7 @@ } } - float Instance::GetTagAsFloat(const char* tag) + float Instance::GetTagAsFloat(const char* tag) const { std::string value = GetTagAsString(tag); @@ -122,7 +122,7 @@ } } - int Instance::GetTagAsInt(const char* tag) + int Instance::GetTagAsInt(const char* tag) const { std::string value = GetTagAsString(tag);