Skip to content
Snippets Groups Projects
Commit 88130a5b authored by Charles Leggett's avatar Charles Leggett
Browse files

make Gaudi::Hive::currentContext() return a const ref

much more useful if the global static accessor to the thread local EventContext object returns a const ref instead of a copy of the object.

See merge request !7
parents f8e03cd5 cf323a12
No related branches found
Tags v34r1
No related merge requests found
......@@ -17,7 +17,7 @@ namespace Gaudi {
/// algorithms.
GAUDI_API ContextIdType currentContextId();
GAUDI_API ContextIdType currentContextEvt();
GAUDI_API EventContext currentContext();
GAUDI_API const EventContext& currentContext();
/// Used by the framework to change the value of the current context id.
GAUDI_API void setCurrentContextId(ContextIdType newId);
......
......@@ -11,7 +11,7 @@ namespace Gaudi {
ContextIdType currentContextEvt() {
return s_curCtx.evt();
}
EventContext currentContext() {
const EventContext& currentContext() {
return s_curCtx;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment