┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/viewproperties.cpp
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2014-11-10 08:45:38 +0100
committerEmmanuel Pescosta <[email protected]>2014-11-10 08:45:38 +0100
commitd0f0f1f2e2644e3738c03374d062dab9acc61eaf (patch)
treeae2d4224b9e1706671926df592c2f4affacfe39c /src/views/viewproperties.cpp
parent82f19ab47019e9e8670e202ad44720d911ab09cf (diff)
make use of initializer lists
Diffstat (limited to 'src/views/viewproperties.cpp')
-rw-r--r--src/views/viewproperties.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp
index 5eb5d23fd..36c6338fe 100644
--- a/src/views/viewproperties.cpp
+++ b/src/views/viewproperties.cpp
@@ -98,7 +98,7 @@ ViewProperties::ViewProperties(const QUrl& url) :
if (useDefaultProps) {
if (useDetailsViewWithPath) {
setViewMode(DolphinView::DetailsView);
- setVisibleRoles(QList<QByteArray>() << "path");
+ setVisibleRoles({"path"});
} else {
// The global view-properties act as default for directories without
// any view-property configuration. Constructing a ViewProperties
@@ -286,8 +286,7 @@ QList<QByteArray> ViewProperties::visibleRoles() const
// by "CustomizedDetails"), also a details-view with no additional information
// is accepted.
- QList<QByteArray> roles;
- roles.append("text");
+ QList<QByteArray> roles{"text"};
// Iterate through all stored keys and append all roles that match to
// the current view mode.