Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 1480:f176ec4467e6
fix warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 02 Aug 2015 12:23:09 +0200 |
parents | 8f28a1cd2354 |
children | f967bdf8534e |
comparison
equal
deleted
inserted
replaced
1479:8f28a1cd2354 | 1480:f176ec4467e6 |
---|---|
445 throw OrthancException(ErrorCode_InexistentFile); | 445 throw OrthancException(ErrorCode_InexistentFile); |
446 } | 446 } |
447 } | 447 } |
448 | 448 |
449 | 449 |
450 #if !defined(ORTHANC_ENABLE_MD5) || ORTHANC_ENABLE_MD5 == 1 | |
450 static char GetHexadecimalCharacter(uint8_t value) | 451 static char GetHexadecimalCharacter(uint8_t value) |
451 { | 452 { |
452 assert(value < 16); | 453 assert(value < 16); |
453 | 454 |
454 if (value < 10) | 455 if (value < 10) |
456 else | 457 else |
457 return (value - 10) + 'a'; | 458 return (value - 10) + 'a'; |
458 } | 459 } |
459 | 460 |
460 | 461 |
461 #if !defined(ORTHANC_ENABLE_MD5) || ORTHANC_ENABLE_MD5 == 1 | |
462 void Toolbox::ComputeMD5(std::string& result, | 462 void Toolbox::ComputeMD5(std::string& result, |
463 const std::string& data) | 463 const std::string& data) |
464 { | 464 { |
465 if (data.size() > 0) | 465 if (data.size() > 0) |
466 { | 466 { |