QmlDesigner: use initializer lists

Change-Id: Ie93861c7d8a5b2863ec8b111afceacc2c163715b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Tim Jenssen
2016-06-20 14:36:52 +02:00
parent b032038781
commit 5a11d5cd5b
10 changed files with 32 additions and 30 deletions
@@ -734,15 +734,15 @@ bool QuickItemNodeInstance::hasAnchor(const PropertyName &name) const
static bool isValidAnchorName(const PropertyName &name)
{
static PropertyNameList anchorNameList(PropertyNameList() << "anchors.top"
<< "anchors.left"
<< "anchors.right"
<< "anchors.bottom"
<< "anchors.verticalCenter"
<< "anchors.horizontalCenter"
<< "anchors.fill"
<< "anchors.centerIn"
<< "anchors.baseline");
static PropertyNameList anchorNameList({"anchors.top",
"anchors.left",
"anchors.right",
"anchors.bottom",
"anchors.verticalCenter",
"anchors.horizontalCenter",
"anchors.fill",
"anchors.centerIn",
"anchors.baseline"});
return anchorNameList.contains(name);
}