Skip to content

Commit

Permalink
Maybe less mutables is better
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 23, 2024
1 parent 4a7493b commit f4f4d2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k4MarlinWrapper/k4MarlinWrapper/MarlinProcessorWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class MarlinProcessorWrapper : public Gaudi::Algorithm {

private:
std::string m_verbosity = "MESSAGE";
mutable marlin::Processor* m_processor = nullptr;
marlin::Processor* m_processor = nullptr;

/// Load libraries specified by MARLIN_DLL environment variable
StatusCode loadProcessorLibraries() const;
Expand Down
2 changes: 1 addition & 1 deletion k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ StatusCode MarlinProcessorWrapper::execute(const EventContext&) const {
m_processor->processEvent(the_event);
}

m_processor->setFirstEvent(false, marlin::ExternalProcessorMgrAccessor{this});
m_processor->setFirstEvent(false, marlin::ExternalProcessorMgrAccessor{const_cast<MarlinProcessorWrapper*>(this)});
}

// Handle exceptions that may come from Marlin
Expand Down

0 comments on commit f4f4d2b

Please sign in to comment.