comparison Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp @ 459:ecd0b719cff5

update year to 2024
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Jan 2024 15:25:48 +0100
parents c1b0f3c4e1f5
children 711b136e8fe8
comparison
equal deleted inserted replaced
442:11cbf4343b5f 459:ecd0b719cff5
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium 4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium 5 * Copyright (C) 2017-2024 Osimis S.A., Belgium
6 * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium 6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
7 * 7 *
8 * This program is free software: you can redistribute it and/or 8 * This program is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation, either version 3 of the 10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version. 11 * License, or (at your option) any later version.
2605 2605
2606 int priority = 0; 2606 int priority = 0;
2607 2607
2608 if (body.isMember(KEY_PRIORITY)) 2608 if (body.isMember(KEY_PRIORITY))
2609 { 2609 {
2610 if (body[KEY_PRIORITY].type() != Json::booleanValue) 2610 if (body[KEY_PRIORITY].type() != Json::intValue)
2611 { 2611 {
2612 #if HAS_ORTHANC_EXCEPTION == 1 2612 #if HAS_ORTHANC_EXCEPTION == 1
2613 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat, 2613 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat,
2614 "Option \"" + std::string(KEY_PRIORITY) + 2614 "Option \"" + std::string(KEY_PRIORITY) +
2615 "\" must be an integer"); 2615 "\" must be an integer");