diff --git a/src/columns/ColDate.cpp b/src/columns/ColDate.cpp index f7aa6aea6..ebdd3e6e2 100644 --- a/src/columns/ColDate.cpp +++ b/src/columns/ColDate.cpp @@ -42,14 +42,13 @@ ColumnDate::ColumnDate () _type = "date"; _style = "formatted"; _label = ""; - - _styles = {"formatted", - "julian", - "epoch", - "iso", - "age", - "remaining", - "countdown"}; + _styles = {"formatted", + "julian", + "epoch", + "iso", + "age", + "remaining", + "countdown"}; Date now; now -= 125; // So that "age" is non-zero. diff --git a/src/columns/ColDepends.cpp b/src/columns/ColDepends.cpp index be6d7d8e8..b367cb1c7 100644 --- a/src/columns/ColDepends.cpp +++ b/src/columns/ColDepends.cpp @@ -38,18 +38,16 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// ColumnDepends::ColumnDepends () { - _name = "depends"; - _type = "string"; - _style = "list"; - _label = STRING_COLUMN_LABEL_DEP; - - _styles = {"list", - "count", - "indicator"}; - - _examples = {"1 2 10", - "[3]", - context.config.get ("dependency.indicator")}; + _name = "depends"; + _type = "string"; + _style = "list"; + _label = STRING_COLUMN_LABEL_DEP; + _styles = {"list", + "count", + "indicator"}; + _examples = {"1 2 10", + "[3]", + context.config.get ("dependency.indicator")}; _hyphenate = context.config.getBoolean ("hyphenate"); } diff --git a/src/columns/ColDescription.cpp b/src/columns/ColDescription.cpp index 3e197917d..2419065a8 100644 --- a/src/columns/ColDescription.cpp +++ b/src/columns/ColDescription.cpp @@ -138,7 +138,7 @@ void ColumnDescription::measure (Task& task, unsigned int& minimum, unsigned int if (task.annotation_count) { - unsigned int min_anno = Date::length (_dateformat); + auto min_anno = Date::length (_dateformat); std::map annos; task.getAnnotations (annos); for (auto& i : annos)