diff options
| author | Tilka <tilkax@gmail.com> | 2019-02-13 01:59:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 01:59:43 +0000 |
| commit | 8d59d1bb11bf594afc6fa3f0a860773c6fa6b8b5 (patch) | |
| tree | 39b666b2bd36c44c1787821c4a5d982e3a14b619 /Source/Core/Common/StringUtil.cpp | |
| parent | 6b22693e6ee783989f92c8a09a4912f4123235d5 (diff) | |
| parent | 49fe9f5db13f15460a49c5771ee0d2c6b8bfdc3c (diff) | |
Merge pull request #7798 from ShFil119/impr/empty
Use empty instead of size
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 2e79fe9176..b946cfd450 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -227,7 +227,7 @@ std::string StripSpaces(const std::string& str) // ends, as done by StripSpaces above, for example. std::string StripQuotes(const std::string& s) { - if (s.size() && '\"' == s[0] && '\"' == *s.rbegin()) + if (!s.empty() && '\"' == s[0] && '\"' == *s.rbegin()) return s.substr(1, s.size() - 2); else return s; |
