mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 15:20:36 +02:00
C++11: N2672 Initializer lists
- Modified code to use the more compact and readable initializer lists.
This commit is contained in:
parent
49f7612704
commit
7bbc794d3a
25 changed files with 136 additions and 231 deletions
|
@ -35,21 +35,18 @@ extern Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
ColumnString::ColumnString ()
|
||||
{
|
||||
_name = "string";
|
||||
_type = "string";
|
||||
_style = "left";
|
||||
_label = "";
|
||||
|
||||
_styles.push_back ("left");
|
||||
_styles.push_back ("right");
|
||||
_styles.push_back ("left_fixed");
|
||||
_styles.push_back ("right_fixed");
|
||||
|
||||
_styles.push_back ("Hello (wrapped) ");
|
||||
_styles.push_back (" Hello (wrapped)");
|
||||
_styles.push_back ("Hello (no-wrap) ");
|
||||
_styles.push_back (" Hello (no-wrap)");
|
||||
|
||||
_name = "string";
|
||||
_type = "string";
|
||||
_style = "left";
|
||||
_label = "";
|
||||
_styles = {"left",
|
||||
"right",
|
||||
"left_fixed",
|
||||
"right_fixed"};
|
||||
_examples = {"Hello (wrapped) ",
|
||||
" Hello (wrapped)",
|
||||
"Hello (no-wrap) ",
|
||||
" Hello (no-wrap)"};
|
||||
_hyphenate = context.config.getBoolean ("hyphenate");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue