From fbd02eb032261faa5abc2ac9b186cb564a0ddc12 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 26 Mar 2025 01:13:40 +0000 Subject: [PATCH] animation: avoid using constexpr std::string fixes #48 --- src/animation/AnimatedVariable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/animation/AnimatedVariable.cpp b/src/animation/AnimatedVariable.cpp index ad63a8b..261c00f 100644 --- a/src/animation/AnimatedVariable.cpp +++ b/src/animation/AnimatedVariable.cpp @@ -5,6 +5,8 @@ using namespace Hyprutils::Animation; using namespace Hyprutils::Memory; +static const std::string DEFAULTBEZIERNAME = "default"; + #define SP CSharedPointer #define WP CWeakPointer @@ -43,8 +45,6 @@ bool Hyprutils::Animation::CBaseAnimatedVariable::enabled() const { } const std::string& CBaseAnimatedVariable::getBezierName() const { - static constexpr const std::string DEFAULTBEZIERNAME = "default"; - if (const auto PCONFIG = m_pConfig.lock()) { const auto PVALUES = PCONFIG->pValues.lock(); return PVALUES ? PVALUES->internalBezier : DEFAULTBEZIERNAME;