[clang-tidy] Replace C style casts with C++ ones
Found with google-readability-casting Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Paul Beckingham
parent
55d103c491
commit
13e1bf7204
@@ -127,10 +127,10 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
|
||||
|
||||
for (unsigned int s = 0; s < sequence.size (); ++s)
|
||||
{
|
||||
if ((int)s >= _truncate_lines && _truncate_lines != 0)
|
||||
if (static_cast<int>(s) >= _truncate_lines && _truncate_lines != 0)
|
||||
break;
|
||||
|
||||
if ((int)s >= _truncate_rows && _truncate_rows != 0)
|
||||
if (static_cast<int>(s) >= _truncate_rows && _truncate_rows != 0)
|
||||
break;
|
||||
|
||||
// Determine minimum and ideal width for this column.
|
||||
|
||||
Reference in New Issue
Block a user