comparison Odbc/Plugins/OdbcIndex.cpp @ 368:82f73188b58d attach-custom-data

fix warnings
author Alain Mazy <am@osimis.io>
date Wed, 01 Feb 2023 16:24:37 +0100
parents cd9521e04249
children f18e46d7dbf8
comparison
equal deleted inserted replaced
366:cd9521e04249 368:82f73188b58d
385 ClearDeletedFiles(manager); 385 ClearDeletedFiles(manager);
386 ClearDeletedResources(manager); 386 ClearDeletedResources(manager);
387 387
388 OrthancPluginResourceType type; 388 OrthancPluginResourceType type;
389 bool hasParent; 389 bool hasParent;
390 int64_t parentId; 390 int64_t parentId = 0;
391 391
392 { 392 {
393 DatabaseManager::CachedStatement lookupResource( 393 DatabaseManager::CachedStatement lookupResource(
394 STATEMENT_FROM_HERE, manager, 394 STATEMENT_FROM_HERE, manager,
395 "SELECT resourceType, parentId FROM Resources WHERE internalId=${id}"); 395 "SELECT resourceType, parentId FROM Resources WHERE internalId=${id}");
480 } 480 }
481 } 481 }
482 482
483 bool hasRemainingAncestor = false; 483 bool hasRemainingAncestor = false;
484 std::string remainingAncestor; 484 std::string remainingAncestor;
485 OrthancPluginResourceType ancestorType; 485 OrthancPluginResourceType ancestorType = OrthancPluginResourceType_None;
486 486
487 if (hasParent) 487 if (hasParent)
488 { 488 {
489 int64_t currentAncestor = parentId; 489 int64_t currentAncestor = parentId;
490 int64_t currentResource = id; 490 int64_t currentResource = id;