comparison Core/DicomParsing/FromDcmtkBridge.cpp @ 2831:b51233f03e7e

missing break
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2018 11:27:48 +0200
parents ab0fd5923c1d
children ae20fccdd867
comparison
equal deleted inserted replaced
2830:ab0fd5923c1d 2831:b51233f03e7e
1721 Json::Value::Members members = value[i].getMemberNames(); 1721 Json::Value::Members members = value[i].getMemberNames();
1722 for (Json::Value::ArrayIndex j = 0; j < members.size(); j++) 1722 for (Json::Value::ArrayIndex j = 0; j < members.size(); j++)
1723 { 1723 {
1724 item->insert(FromJson(ParseTag(members[j]), value[i][members[j]], decodeDataUriScheme, dicomEncoding)); 1724 item->insert(FromJson(ParseTag(members[j]), value[i][members[j]], decodeDataUriScheme, dicomEncoding));
1725 } 1725 }
1726 break;
1726 } 1727 }
1727 1728
1728 case Json::arrayValue: 1729 case Json::arrayValue:
1730 {
1729 // Lua cannot disambiguate between an empty dictionary 1731 // Lua cannot disambiguate between an empty dictionary
1730 // and an empty array 1732 // and an empty array
1731 if (value[i].size() != 0) 1733 if (value[i].size() != 0)
1732 { 1734 {
1733 throw OrthancException(ErrorCode_BadParameterType); 1735 throw OrthancException(ErrorCode_BadParameterType);
1734 } 1736 }
1735 break; 1737 break;
1738 }
1736 1739
1737 default: 1740 default:
1738 throw OrthancException(ErrorCode_BadParameterType); 1741 throw OrthancException(ErrorCode_BadParameterType);
1739 } 1742 }
1740 1743