mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-07 21:07:20 +02:00
[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:
parent
55d103c491
commit
13e1bf7204
14 changed files with 86 additions and 86 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue