comparison OrthancServer/Sources/ServerContext.cpp @ 4994:2f30aa99c2db

cppcheck
author Alain Mazy <am@osimis.io>
date Tue, 03 May 2022 15:30:01 +0200
parents 8fba26292a9f
children 877bc3b96476
comparison
equal deleted inserted replaced
4993:8feb00fea93d 4994:2f30aa99c2db
636 { 636 {
637 accessor.Remove(dicomUntilPixelData); 637 accessor.Remove(dicomUntilPixelData);
638 } 638 }
639 } 639 }
640 640
641 if (!isReconstruct) // skip logs in case of reconstruction 641 if (!isReconstruct)
642 { 642 {
643 // skip logs in case of reconstruction
643 switch (result.GetStatus()) 644 switch (result.GetStatus())
644 { 645 {
645 case StoreStatus_Success: 646 case StoreStatus_Success:
646 LOG(INFO) << "New instance stored"; 647 LOG(INFO) << "New instance stored";
647 break; 648 break;
656 657
657 default: 658 default:
658 // This should never happen 659 // This should never happen
659 break; 660 break;
660 } 661 }
661 } 662
662 663 // skip all signals if this is a reconstruction
663 if (!isReconstruct) // skip all signals if this is a reconstruction
664 {
665 if (result.GetStatus() == StoreStatus_Success || 664 if (result.GetStatus() == StoreStatus_Success ||
666 result.GetStatus() == StoreStatus_AlreadyStored) 665 result.GetStatus() == StoreStatus_AlreadyStored)
667 { 666 {
668 boost::shared_lock<boost::shared_mutex> lock(listenersMutex_); 667 boost::shared_lock<boost::shared_mutex> lock(listenersMutex_);
669 668