Cherrypicked pull request #1743 (cppcheck performance fixes).
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
namespace StringUtils
|
||||
{
|
||||
bool hasSuffix(const std::string& lhs, const std::string rhs)
|
||||
bool hasSuffix(const std::string& lhs, const std::string &rhs)
|
||||
{
|
||||
if (lhs.length() < rhs.length())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user