Skip to content

Commit

Permalink
Fix warnings from eicshell
Browse files Browse the repository at this point in the history
nathanwbrei committed Jul 3, 2024
1 parent 209388c commit bee140c
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/libraries/JANA/JLogger.h
Original file line number Diff line number Diff line change
@@ -58,6 +58,7 @@ struct JLogMessage {
JLogger::Level level;
std::ostringstream builder;


JLogMessage(const JLogger& logger = default_cout_logger,
JLogger::Level level = JLogger::Level::INFO)
: logger(logger), level(level) {
@@ -84,10 +85,10 @@ struct JLogMessage {
/// Stream operators

template <typename T>
inline JLogMessage&& operator<<(JLogger& l, const T& t) {
inline JLogMessage operator<<(JLogger& l, const T& t) {
JLogMessage m(l);
m.builder << t;
return std::move(m);
return m;
}

template<typename T>
4 changes: 2 additions & 2 deletions src/programs/unit_tests/Components/PodioTests.cc
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ namespace podiotests {

TEST_CASE("PodioTestsInsertAndRetrieve") {
ExampleClusterCollection clusters_to_insert;
clusters_to_insert.push_back(MutableExampleCluster({16.0}));
clusters_to_insert.push_back(MutableExampleCluster({128.0}));
clusters_to_insert.push_back(MutableExampleCluster(16.0));
clusters_to_insert.push_back(MutableExampleCluster(128.0));

auto event = std::make_shared<JEvent>();
event->InsertCollection<ExampleCluster>(std::move(clusters_to_insert), "clusters");

0 comments on commit bee140c

Please sign in to comment.