summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-04-04 10:32:24 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-04-04 16:52:39 (GMT)
commit66a7e4361f9f07962c7d22409aa6274da2dce9de (patch)
treed99c66e9e9563440ddbec11803ed2df8d13ecf5a /src/corelib
parent153bf90ea0fc5f58c27c82e13dc1c4d73b028f5e (diff)
downloadQt-66a7e4361f9f07962c7d22409aa6274da2dce9de.zip
Qt-66a7e4361f9f07962c7d22409aa6274da2dce9de.tar.gz
Qt-66a7e4361f9f07962c7d22409aa6274da2dce9de.tar.bz2
QStringList: constructor for std::initializer_list
Reviewed-by: Joao
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qstringlist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/tools/qstringlist.h b/src/corelib/tools/qstringlist.h
index a211430..a0290bc 100644
--- a/src/corelib/tools/qstringlist.h
+++ b/src/corelib/tools/qstringlist.h
@@ -70,6 +70,9 @@ public:
inline explicit QStringList(const QString &i) { append(i); }
inline QStringList(const QStringList &l) : QList<QString>(l) { }
inline QStringList(const QList<QString> &l) : QList<QString>(l) { }
+#ifdef Q_COMPILER_INITIALIZER_LISTS
+ inline QStringList(std::initializer_list<QString> args) : QList(args) { }
+#endif
inline void sort();
inline int removeDuplicates();