Cleanup
- Removed unnecessary definitions of max() and min(), replaced existent calls with std::max(). Precursor to Bugfix #887. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
committed by
Paul Beckingham
parent
69fecbb2c0
commit
30a97f5f52
@@ -106,7 +106,7 @@ void ColumnDescription::measure (Task& task, int& minimum, int& maximum)
|
||||
|
||||
int min_desc = longestWord (description);
|
||||
int min_anno = indent + Date::length (format);
|
||||
minimum = max (min_desc, min_anno);
|
||||
minimum = std::max (min_desc, min_anno);
|
||||
maximum = description.length ();
|
||||
|
||||
std::map <std::string, std::string> annos;
|
||||
@@ -136,7 +136,7 @@ void ColumnDescription::measure (Task& task, int& minimum, int& maximum)
|
||||
|
||||
int min_desc = longestWord (description);
|
||||
int min_anno = Date::length (format);
|
||||
minimum = max (min_desc, min_anno);
|
||||
minimum = std::max (min_desc, min_anno);
|
||||
maximum = description.length ();
|
||||
|
||||
std::map <std::string, std::string> annos;
|
||||
|
||||
Reference in New Issue
Block a user