fitsRuleString dont reference string_view

pull/3236/head
Sam Hellawell 8 months ago
parent 014cba807b
commit 340252007b

@ -127,7 +127,7 @@ namespace SceneUtil
mRules.insert(mRules.end(), rules.begin(), rules.end());
}
inline bool AnimBlendRules::fitsRuleString(const std::string_view& str, const std::string_view& ruleStr) const
inline bool AnimBlendRules::fitsRuleString(const std::string_view str, const std::string_view ruleStr) const
{
// A wildcard only supported in the beginning or the end of the rule string in hopes that this will be more
// performant. And most likely this kind of support is enough.

@ -42,7 +42,7 @@ namespace SceneUtil
private:
std::vector<BlendRule> mRules;
inline bool fitsRuleString(const std::string_view& str, const std::string_view& ruleStr) const;
inline bool fitsRuleString(const std::string_view str, const std::string_view ruleStr) const;
};
}

Loading…
Cancel
Save