From 768356e11e5d9fc3b9b56db19fde1b22a2f5d3bc Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Thu, 8 Feb 2024 22:06:12 +0100 Subject: [PATCH] Rename variable --- plugins/twitch/points-reward-selection.cpp | 2 +- plugins/twitch/points-reward-selection.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/twitch/points-reward-selection.cpp b/plugins/twitch/points-reward-selection.cpp index 68aed060..28163604 100644 --- a/plugins/twitch/points-reward-selection.cpp +++ b/plugins/twitch/points-reward-selection.cpp @@ -72,7 +72,7 @@ void TwitchPointsRewardSelection::PopulateSelection() { auto token = _token.lock(); - if (!token || !token->AnyOptionIsEnabled(SUPPORTED_TOKEN_OPTIONS)) { + if (!token || !token->AnyOptionIsEnabled(_supportedTokenOptions)) { DisplayErrorMessage(obs_module_text( "AdvSceneSwitcher.twitch.selection.points.reward.tooltip.noPermission")); return; diff --git a/plugins/twitch/points-reward-selection.hpp b/plugins/twitch/points-reward-selection.hpp index 4ecd53fb..0ce41ae7 100644 --- a/plugins/twitch/points-reward-selection.hpp +++ b/plugins/twitch/points-reward-selection.hpp @@ -41,7 +41,7 @@ private: std::vector ParseResponse(obs_data_t *response); bool _allowAny; - const std::vector SUPPORTED_TOKEN_OPTIONS = { + const std::vector _supportedTokenOptions = { {"channel:read:redemptions"}, {"channel:manage:redemptions"}};