mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 09:40:37 +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
|
@ -88,7 +88,7 @@ bool ColumnDescription::validate (std::string& value)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Set the minimum and maximum widths for the value.
|
||||
void ColumnDescription::measure (Task& task, int& minimum, int& maximum)
|
||||
void ColumnDescription::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||
{
|
||||
std::string description = task.get (_name);
|
||||
|
||||
|
@ -113,7 +113,7 @@ void ColumnDescription::measure (Task& task, int& minimum, int& maximum)
|
|||
std::map <std::string, std::string>::iterator i;
|
||||
for (i = annos.begin (); i != annos.end (); i++)
|
||||
{
|
||||
int len = min_anno + 1 + i->second.length ();
|
||||
unsigned int len = min_anno + 1 + i->second.length ();
|
||||
if (len > maximum)
|
||||
maximum = len;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue