Skip to content
Snippets Groups Projects
Commit 77080212 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

CxxUtils: Suppress cppcheck false positive.

Suppress cppcheck false positive about missing dtor for ConcurrentHashmapImpl.
m_table gets deleted because it's handed to the Updator object.
parent a09f6ae8
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!41043CxxUtils: Suppress cppcheck false positive.
/*
* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration.
* Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
*/
/**
* @file CxxUtils/ConcurrentHashmapImpl.h
......@@ -289,6 +289,7 @@ CHMIMPL::ConcurrentHashmapImpl (Updater_t&& updater,
// Round up capacity to a power of 2.
size_t capacity = round_up (capacity_in);
// cppcheck-suppress noDestructor // false positive
m_table = new (capacity) Table (capacity, hasher, matcher);
m_updater.update (std::unique_ptr<Table> (m_table), ctx);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment