mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
trivial: consistently use context
as the argument name for CoreContext
This commit is contained in:
parent
9307a22117
commit
b8fc743f1f
@ -24,10 +24,10 @@ using CoreContext = std::variant<std::nullopt_t,
|
||||
std::reference_wrapper<LLMQContext>>;
|
||||
|
||||
template<typename T>
|
||||
T* GetContext(const CoreContext& ctx) noexcept
|
||||
T* GetContext(const CoreContext& context) noexcept
|
||||
{
|
||||
return std::holds_alternative<std::reference_wrapper<T>>(ctx)
|
||||
? &std::get<std::reference_wrapper<T>>(ctx).get()
|
||||
return std::holds_alternative<std::reference_wrapper<T>>(context)
|
||||
? &std::get<std::reference_wrapper<T>>(context).get()
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user