From ef95584b6eef624151c0094a8edab60d10cbc8dd Mon Sep 17 00:00:00 2001 From: Siarhei Harkusha <Siarhei.Harkusha@cern.ch> Date: Tue, 19 Mar 2019 16:48:14 +0100 Subject: [PATCH] TileTPCnv: Avoid using auto keyword --- .../TileSvc/TileTPCnv/TileTPCnv/T_TilePoolContainerCnv.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TileCalorimeter/TileSvc/TileTPCnv/TileTPCnv/T_TilePoolContainerCnv.h b/TileCalorimeter/TileSvc/TileTPCnv/TileTPCnv/T_TilePoolContainerCnv.h index b763231e8d4..5a4e3c764fb 100644 --- a/TileCalorimeter/TileSvc/TileTPCnv/TileTPCnv/T_TilePoolContainerCnv.h +++ b/TileCalorimeter/TileSvc/TileTPCnv/TileTPCnv/T_TilePoolContainerCnv.h @@ -74,14 +74,14 @@ public: throw std::runtime_error("Failed to initialize Tile mutable Container"); } - for(const auto& element : vec) { - if (mutableContainer->push_back(m_elementCnv.createTransient(&element, log)).isFailure()) { + for( pers_const_iterator it = vec.begin(), iEnd = vec.end(); it != iEnd; ++it) { + if (mutableContainer->push_back(m_elementCnv.createTransient(&(*it), log)).isFailure()) { throw std::runtime_error("Failed to add Tile element to Collection"); } } - auto hashes = mutableContainer->GetAllCurrentHashes(); - for (auto hash : hashes) { + std::vector<IdentifierHash> hashes = mutableContainer->GetAllCurrentHashes(); + for (const IdentifierHash hash : hashes) { Collection* coll = mutableContainer->indexFindPtr(hash); auto newColl = std::make_unique<Collection>(std::move(*coll)); if (trans->addOrDelete(std::move(newColl), hash).isFailure()) { -- GitLab