Skip to content

Commit

Permalink
DPL: keep code checker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Feb 10, 2024
1 parent a3542ea commit 4486909
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Framework/DataInspector/src/DataInspector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

using namespace rapidjson;

namespace o2::framework::DataInspector
namespace o2::framework::data_inspector
{
#if BOOST_ENDIAN_BIG_BYTE
static const auto endianness = "BIG";
Expand Down Expand Up @@ -147,4 +147,4 @@ std::vector<DIMessage> serializeO2Messages(const std::vector<DataRef>& refs, con

return messages;
}
} // namespace o2::framework::DataInspector
} // namespace o2::framework::data_inspector
4 changes: 2 additions & 2 deletions Framework/DataInspector/src/DataInspector.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@

#include <cstring>

namespace o2::framework::DataInspector
namespace o2::framework::data_inspector
{
inline bool isNonInternalDevice(const DeviceSpec& spec)
{
return spec.name.find("internal") == std::string::npos;
}

std::vector<DIMessage> serializeO2Messages(const std::vector<DataRef>& refs, const std::string& deviceName);
} // namespace o2::framework::DataInspector
} // namespace o2::framework::data_inspector

#endif // O2_DATAINSPECTOR_H
6 changes: 3 additions & 3 deletions Framework/DataInspector/src/DataInspectorService.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ ServiceSpec* DIServicePlugin::create()
std::string runId = std::getenv("O2_DATAINSPECTOR_ID");

const auto& spec = services.get<const DeviceSpec>();
if (DataInspector::isNonInternalDevice(spec)) {
if (data_inspector::isNonInternalDevice(spec)) {
auto* diService = new DataInspectorProxyService(services, spec, proxyAddress, proxyPort, runId);
return ServiceHandle{TypeIdHelpers::uniqueId<DataInspectorProxyService>(), diService};
} else {
Expand Down Expand Up @@ -238,11 +238,11 @@ ServiceSpec* DIServicePlugin::create()
}

// Send copy to proxy
auto proxyMessages = DataInspector::serializeO2Messages(refs, registry.get < DeviceSpec const>().name);
auto proxyMessages = data_inspector::serializeO2Messages(refs, registry.get<DeviceSpec const>().name);
for (auto &proxyMessage: proxyMessages) {
diService.send(std::move(proxyMessage));
}
} },
.kind = ServiceKind::Global};
};
} // namespace o2::framework
} // namespace o2::framework

0 comments on commit 4486909

Please sign in to comment.