comparison Plugins/Engine/OrthancPluginDatabase.cpp @ 1545:33d34bc4ac15

fix msvc warnings
author jodogne
date Thu, 13 Aug 2015 21:02:31 +0200
parents ffc9f36103b9
children c74495267acf
comparison
equal deleted inserted replaced
1544:4d0e2c38d15b 1545:33d34bc4ac15
541 if (backend_.isExistingResource(&existing, payload_, internalId) != 0) 541 if (backend_.isExistingResource(&existing, payload_, internalId) != 0)
542 { 542 {
543 throw OrthancException(ErrorCode_Plugin); 543 throw OrthancException(ErrorCode_Plugin);
544 } 544 }
545 545
546 return existing; 546 return (existing != 0);
547 } 547 }
548 548
549 549
550 bool OrthancPluginDatabase::IsProtectedPatient(int64_t internalId) 550 bool OrthancPluginDatabase::IsProtectedPatient(int64_t internalId)
551 { 551 {
554 if (backend_.isProtectedPatient(&isProtected, payload_, internalId) != 0) 554 if (backend_.isProtectedPatient(&isProtected, payload_, internalId) != 0)
555 { 555 {
556 throw OrthancException(ErrorCode_Plugin); 556 throw OrthancException(ErrorCode_Plugin);
557 } 557 }
558 558
559 return isProtected; 559 return (isProtected != 0);
560 } 560 }
561 561
562 562
563 void OrthancPluginDatabase::ListAvailableMetadata(std::list<MetadataType>& target, 563 void OrthancPluginDatabase::ListAvailableMetadata(std::list<MetadataType>& target,
564 int64_t id) 564 int64_t id)