Skip to content

Commit a5cc79f

Browse files
committed
simplecpp.cpp: fixed readability-container-size-empty clang-tidy warning
1 parent 7aabaac commit a5cc79f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static unsigned long long stringToULL(const std::string &s, std::size_t offset =
167167

168168
static long long stringToLL(const std::string &s)
169169
{
170-
if (s.size() > 0 && s[0] == '-')
170+
if (!s.empty() && s[0] == '-')
171171
return -stringToULL(s, 1);
172172
return stringToULL(s);
173173
}

0 commit comments

Comments
 (0)