aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/itemdeclaration.h
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-02-20 13:38:24 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-02-23 07:38:42 +0000
commite160b26d8c7476c63f6220ac69d1d6405e8ce3aa (patch)
treea63896f1b3d74ab9b50d45070213d6897a8d7248 /src/lib/corelib/language/itemdeclaration.h
parent6615e52e4308962a7d10d606eead188fbfe198f3 (diff)
Replace 'typedef' with 'using' where it is possible
One exception is that the 'typedef' for function pointers were skipped due to an additional work is required. Change-Id: I2112fded3abeaee1d1f49f56adfd2914d5db0324 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/language/itemdeclaration.h')
-rw-r--r--src/lib/corelib/language/itemdeclaration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/language/itemdeclaration.h b/src/lib/corelib/language/itemdeclaration.h
index f637e6bbb..6da699d28 100644
--- a/src/lib/corelib/language/itemdeclaration.h
+++ b/src/lib/corelib/language/itemdeclaration.h
@@ -57,7 +57,7 @@ public:
ItemType type() const { return m_type; }
- typedef QList<PropertyDeclaration> Properties;
+ using Properties = QList<PropertyDeclaration>;
void setProperties(const Properties &props) { m_properties = props; }
Properties properties() const { return m_properties; }
@@ -66,7 +66,7 @@ public:
ItemDeclaration &operator<<(const PropertyDeclaration &decl);
- typedef Set<ItemType> TypeNames;
+ using TypeNames = Set<ItemType>;
void setAllowedChildTypes(const TypeNames &typeNames) { m_allowedChildTypes = typeNames; }
const TypeNames &allowedChildTypes() const { return m_allowedChildTypes; }
bool isChildTypeAllowed(ItemType type) const;