From 1dfb5f1c79be6d4b114c86add797190170950f20 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 17 Feb 2026 22:18:56 +0000 Subject: [PATCH] Please consider the following formatting changes --- CCDB/include/CCDB/BasicCCDBManager.h | 2 +- Framework/Core/include/Framework/ServiceRegistryRef.h | 2 +- Framework/Core/src/ServiceRegistryRef.cxx | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CCDB/include/CCDB/BasicCCDBManager.h b/CCDB/include/CCDB/BasicCCDBManager.h index fd0fe7aa6d05b..7844320eb115d 100644 --- a/CCDB/include/CCDB/BasicCCDBManager.h +++ b/CCDB/include/CCDB/BasicCCDBManager.h @@ -342,7 +342,7 @@ T* CCDBManagerInstance::getForTimeStamp(std::string const& path, long timestamp, } auto end = std::chrono::system_clock::now(); mTimerMS += std::chrono::duration_cast(end - start).count(); - auto *ref = o2::framework::ServiceRegistryRef::globalDeviceRef(); + auto* ref = o2::framework::ServiceRegistryRef::globalDeviceRef(); if (ref && ref->active()) { auto& stats = ref->get(); stats.updateStats({(int)o2::framework::ProcessingStatsId::CCDB_CACHE_HIT, o2::framework::DataProcessingStats::Op::Set, (int64_t)mQueries - mFailures - mFetches}); diff --git a/Framework/Core/include/Framework/ServiceRegistryRef.h b/Framework/Core/include/Framework/ServiceRegistryRef.h index 85aad6d70e93b..ee2fd299e2f70 100644 --- a/Framework/Core/include/Framework/ServiceRegistryRef.h +++ b/Framework/Core/include/Framework/ServiceRegistryRef.h @@ -112,7 +112,7 @@ class ServiceRegistryRef mRegistry.unlock(mSalt); } - static ServiceRegistryRef *globalDeviceRef(ServiceRegistryRef *ref = nullptr); + static ServiceRegistryRef* globalDeviceRef(ServiceRegistryRef* ref = nullptr); private: ServiceRegistry& mRegistry; diff --git a/Framework/Core/src/ServiceRegistryRef.cxx b/Framework/Core/src/ServiceRegistryRef.cxx index 70728ad37eda7..37234a5140719 100644 --- a/Framework/Core/src/ServiceRegistryRef.cxx +++ b/Framework/Core/src/ServiceRegistryRef.cxx @@ -9,12 +9,13 @@ // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. - #include "Framework/ServiceRegistryRef.h" -namespace o2::framework { +namespace o2::framework +{ -ServiceRegistryRef *ServiceRegistryRef::globalDeviceRef(ServiceRegistryRef *ref) { - static ServiceRegistryRef *globalRef = nullptr; +ServiceRegistryRef* ServiceRegistryRef::globalDeviceRef(ServiceRegistryRef* ref) +{ + static ServiceRegistryRef* globalRef = nullptr; if (!globalRef) { globalRef = ref; } @@ -22,4 +23,4 @@ ServiceRegistryRef *ServiceRegistryRef::globalDeviceRef(ServiceRegistryRef *ref) return globalRef; } -} +} // namespace o2::framework