From b8fc743f1f1ae976f9e433a24ec2e2b18f7fa832 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Tue, 25 Jul 2023 08:58:32 +0000 Subject: [PATCH] trivial: consistently use `context` as the argument name for `CoreContext` --- src/context.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context.h b/src/context.h index a2d0c3ac7b..6570cdf0be 100644 --- a/src/context.h +++ b/src/context.h @@ -24,10 +24,10 @@ using CoreContext = std::variant>; template -T* GetContext(const CoreContext& ctx) noexcept +T* GetContext(const CoreContext& context) noexcept { - return std::holds_alternative>(ctx) - ? &std::get>(ctx).get() + return std::holds_alternative>(context) + ? &std::get>(context).get() : nullptr; }