C++11: N2672 Initializer lists
- Modified code to use the more compact and readable initializer lists.
This commit is contained in:
@@ -41,12 +41,8 @@ ColumnParent::ColumnParent ()
|
||||
_style = "long";
|
||||
_label = STRING_COLUMN_LABEL_PARENT;
|
||||
_modifiable = false;
|
||||
|
||||
_styles.push_back ("long");
|
||||
_styles.push_back ("short");
|
||||
|
||||
_examples.push_back ("f30cb9c3-3fc0-483f-bfb2-3bf134f00694");
|
||||
_examples.push_back ("34f00694");
|
||||
_styles = {"long", "short"};
|
||||
_examples = {"f30cb9c3-3fc0-483f-bfb2-3bf134f00694", "34f00694"};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user