From 01e5663c9edab2fa3e3aaf1e823eee2c75cdbefb Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Thu, 15 Oct 2020 23:46:06 -0400
Subject: [PATCH] LArReadoutGeometry: Fix cppcheck warnings.

 - Prefer pre-increment (or range-for) to postincrement.
---
 .../LArGeoModel/LArReadoutGeometry/src/FCAL_ChannelMap.cxx      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LArCalorimeter/LArGeoModel/LArReadoutGeometry/src/FCAL_ChannelMap.cxx b/LArCalorimeter/LArGeoModel/LArReadoutGeometry/src/FCAL_ChannelMap.cxx
index ab881197536..3005cf84772 100755
--- a/LArCalorimeter/LArGeoModel/LArReadoutGeometry/src/FCAL_ChannelMap.cxx
+++ b/LArCalorimeter/LArGeoModel/LArReadoutGeometry/src/FCAL_ChannelMap.cxx
@@ -453,7 +453,7 @@ FCAL_ChannelMap::print_tubemap( int imap) const
   boost::io::ios_all_saver ias (std::cout);
   std::cout << "First 10 elements of the New FCAL tube map : " << imap << std::endl;
   std::cout.precision(5);
-  for ( int i=0;  i<10; i++, it++)
+  for ( int i=0;  i<10; ++i, ++it)
     std::cout << std::hex << it->first << "\t" 
 	      << (it->second).get_tileName() << std::dec <<"\t" 
 	      << (it->second).x() <<"\t" 
-- 
GitLab