Mercurial > hg > orthanc
changeset 3440:77702c19a2fa
fix issue #143
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Jun 2019 18:28:11 +0200 |
parents | fbcde0d66ed8 |
children | 6cc72ebfd6ef |
files | Plugins/Samples/Common/OrthancPluginCppWrapper.cpp |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 21 17:19:33 2019 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 21 18:28:11 2019 +0200 @@ -334,13 +334,10 @@ void OrthancString::Assign(char* str) { - if (str == NULL) + Clear(); + + if (str != NULL) { - ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); - } - else - { - Clear(); str_ = str; } }