mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- 'measure' now accepts unsigned ints for 'minimum' and 'maximum' args.
This commit is contained in:
parent
40f2afeb8e
commit
19cc9177b9
42 changed files with 54 additions and 55 deletions
|
@ -136,11 +136,9 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
|
|||
break;
|
||||
|
||||
// Determine minimum and ideal width for this column.
|
||||
int min_;
|
||||
int ideal_;
|
||||
(*i)->measure (data[sequence[s]], min_, ideal_);
|
||||
unsigned int min = min_;
|
||||
unsigned int ideal = ideal_;
|
||||
unsigned int min;
|
||||
unsigned int ideal;
|
||||
(*i)->measure (data[sequence[s]], min, ideal);
|
||||
|
||||
if (min > global_min) global_min = min;
|
||||
if (ideal > global_ideal) global_ideal = ideal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue