From 7546094b7d62faa191f8c2c0fde5328434598bc8 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:07:29 +0100 Subject: [PATCH] Adapt to fmt 10.1.1 (#2031) --- Modules/MUON/MCH/src/QualityPostProcessing.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/MUON/MCH/src/QualityPostProcessing.cxx b/Modules/MUON/MCH/src/QualityPostProcessing.cxx index 1018754972..51715b48db 100644 --- a/Modules/MUON/MCH/src/QualityPostProcessing.cxx +++ b/Modules/MUON/MCH/src/QualityPostProcessing.cxx @@ -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; @@ -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 + "}");