diff options
| author | Filip Gawin <filip.gawin@zoho.com> | 2019-02-12 23:47:17 +0100 |
|---|---|---|
| committer | Filip Gawin <filip.gawin@zoho.com> | 2019-02-13 00:03:49 +0100 |
| commit | 49fe9f5db13f15460a49c5771ee0d2c6b8bfdc3c (patch) | |
| tree | d5bbc9e6df9ade7cd4e6917af5cc0f286eaa91ff /Source/Core/Common/StringUtil.cpp | |
| parent | 363ce67459fd48253d2a38cf2528c7465db49911 (diff) | |
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; |
