diff --git a/components/sceneutil/animblendrules.cpp b/components/sceneutil/animblendrules.cpp index 2f760f41f3..130c285689 100644 --- a/components/sceneutil/animblendrules.cpp +++ b/components/sceneutil/animblendrules.cpp @@ -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. diff --git a/components/sceneutil/animblendrules.hpp b/components/sceneutil/animblendrules.hpp index 913d3531c0..57e67164b9 100644 --- a/components/sceneutil/animblendrules.hpp +++ b/components/sceneutil/animblendrules.hpp @@ -42,7 +42,7 @@ namespace SceneUtil private: std::vector 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; }; }