Skip to content

Commit

Permalink
Use size_t instead of auto in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline75489 committed Oct 1, 2019
1 parent 1cce2ad commit 99b038f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer/out/AttrRow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void ATTR_ROW::ReplaceAttrs(const TextAttribute& toBeReplacedAttr, const TextAtt
{
size_t lowerBound = 0;
size_t upperBound = 0;
for (auto i = 0; i < _list.size(); i++)
for (size_t i = 0; i < _list.size(); i++)
{
upperBound += _list[i].GetLength();
if (iStart >= lowerBound && iStart < upperBound)
Expand Down

0 comments on commit 99b038f

Please sign in to comment.