1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 03:36:40 +00:00

fitsRuleString dont reference string_view

This commit is contained in:
Sam Hellawell 2024-05-03 01:50:14 +01:00
parent 014cba807b
commit 340252007b
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ namespace SceneUtil
mRules.insert(mRules.end(), rules.begin(), rules.end()); 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 // 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. // performant. And most likely this kind of support is enough.

View file

@ -42,7 +42,7 @@ namespace SceneUtil
private: private:
std::vector<BlendRule> mRules; 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;
}; };
} }