mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-05-12 21:30:36 +01:00
animations: minor follow-up fix for std::string (#49)
This commit is contained in:
parent
fbd02eb032
commit
7248194a2c
1 changed files with 1 additions and 2 deletions
|
@ -6,6 +6,7 @@ using namespace Hyprutils::Animation;
|
|||
using namespace Hyprutils::Memory;
|
||||
|
||||
static const std::string DEFAULTBEZIERNAME = "default";
|
||||
static const std::string DEFAULTSTYLE = "";
|
||||
|
||||
#define SP CSharedPointer
|
||||
#define WP CWeakPointer
|
||||
|
@ -54,8 +55,6 @@ const std::string& CBaseAnimatedVariable::getBezierName() const {
|
|||
}
|
||||
|
||||
const std::string& CBaseAnimatedVariable::getStyle() const {
|
||||
static constexpr const std::string DEFAULTSTYLE = "";
|
||||
|
||||
if (const auto PCONFIG = m_pConfig.lock()) {
|
||||
const auto PVALUES = PCONFIG->pValues.lock();
|
||||
return PVALUES ? PVALUES->internalStyle : DEFAULTSTYLE;
|
||||
|
|
Loading…
Reference in a new issue