Commit 3324135d authored by Du Rong's avatar Du Rong
Browse files

add clang format patch #21

parent c77a4380
......@@ -140,8 +140,8 @@ LoadCSNSNexus::getGPPDModules(const std::string &bankName) {
m_file->openGroup(m_entry, "NXentry");
m_file->openGroup("instrument", "NXinstrument");
auto entries = m_file->getEntries();
for (const auto & it : entries) {
const auto & name = it.first;
for (const auto &it : entries) {
const auto &name = it.first;
if (name.compare(0, 7, "module" + std::to_string(firstModuleId)) == 0 ||
name.compare(0, 7, "module" + std::to_string(secondModuleId)) == 0) {
data.emplace_back(name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment