Skip to content
Snippets Groups Projects
Commit 92c33d0f authored by Scott Snyder's avatar Scott Snyder Committed by Johannes Elmsheuser
Browse files

MuonGeoModelTestR4: Fix cppcheck warnings.

MuonGeoModelTestR4: Fix cppcheck warnings.

Use string::starts_with rather than string::find.
parent bd30992f
No related branches found
Tags nightly/main/2024-03-14T2001
No related merge requests found
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/**
* @brief Helper macro to compare the output from the readout geometry dumps:
......@@ -285,8 +285,8 @@ int main( int argc, char** argv ) {
return EXIT_FAILURE;
}
/// check whether the files are xroot d -> otherwise call path resovler
if (refFile.find("root://") != 0) refFile = PathResolver::FindCalibFile(refFile);
if (testFile.find("root://") != 0) testFile = PathResolver::FindCalibFile(testFile);
if (!refFile.starts_with ("root://")) refFile = PathResolver::FindCalibFile(refFile);
if (!testFile.starts_with ("root://")) testFile = PathResolver::FindCalibFile(testFile);
/// Parse the tree dump
std::set<MmChamber> refChambers = readTreeDump(refFile);
if (refChambers.empty()) {
......
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