Skip to content

Commit

Permalink
Adapt to fmt 10.1.1 (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored and Barthelemy committed Nov 10, 2023
1 parent 97d2976 commit 7546094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/MUON/MCH/src/QualityPostProcessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void QualityPostProcessing::update(Trigger t, framework::ServiceRegistryRef serv
std::string Qstr = fmt::format("#color[{}]", kViolet - 6) + "{Null}";
if (qo->getQuality() == Quality::Bad) {
Q = 1;
Qstr = fmt::format("#color[{}]", kRed) + "{Bad}";
Qstr = fmt::format("#color[{}]", (int)kRed) + "{Bad}";
}
if (qo->getQuality() == Quality::Medium) {
Q = 2;
Expand Down Expand Up @@ -135,9 +135,9 @@ void QualityPostProcessing::update(Trigger t, framework::ServiceRegistryRef serv
mCheckerMessages.insert(mCheckerMessages.begin(), fmt::format("MCH Quality = #color[{}]", kOrange - 3) + "{Medium}");
} else if (mchQuality == Quality::Bad) {
if (!mMessageBad.empty()) {
mCheckerMessages.insert(mCheckerMessages.begin(), fmt::format("#color[{}]", kRed) + "{" + mMessageBad + "}");
mCheckerMessages.insert(mCheckerMessages.begin(), fmt::format("#color[{}]", (int)kRed) + "{" + mMessageBad + "}");
}
mCheckerMessages.insert(mCheckerMessages.begin(), fmt::format("MCH Quality = #color[{}]", kRed) + "{Bad}");
mCheckerMessages.insert(mCheckerMessages.begin(), fmt::format("MCH Quality = #color[{}]", (int)kRed) + "{Bad}");
} else if (mchQuality == Quality::Null) {
if (!mMessageNull.empty()) {
mCheckerMessages.insert(mCheckerMessages.begin(), fmt::format("#color[{}]", kViolet - 6) + "{" + mMessageNull + "}");
Expand Down

0 comments on commit 7546094

Please sign in to comment.