From 0e8520d18f700c42ffff12e111ee4fc25caac55a Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Thu, 7 Mar 2013 08:30:27 +0000 Subject: Update the documentation for C++11 initializer lists support The documentation was written for 4.8 when the C++11 standard did not have the name yet. Change-Id: I08640a5ae62385b09e181eefafd4cc831e4de456 Reviewed-by: Olivier Goffart --- src/corelib/tools/qlist.cpp | 3 ++- src/corelib/tools/qstringlist.cpp | 3 ++- src/corelib/tools/qvector.cpp | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index 49f5ae4210..760c944c29 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -511,7 +511,8 @@ void **QListData::erase(void **xi) Construct a list from the std::initializer_list specified by \a args. - This constructor is only enabled if the compiler supports C++0x + This constructor is only enabled if the compiler supports C++11 initializer + lists. */ /*! \fn QList::~QList() diff --git a/src/corelib/tools/qstringlist.cpp b/src/corelib/tools/qstringlist.cpp index f48db4a643..f38acef664 100644 --- a/src/corelib/tools/qstringlist.cpp +++ b/src/corelib/tools/qstringlist.cpp @@ -738,7 +738,8 @@ int QtPrivate::QStringList_removeDuplicates(QStringList *that) Construct a list from a std::initializer_list given by \a args. - This constructor is only enabled if the compiler supports C++0x + This constructor is only enabled if the compiler supports C++11 initializer + lists. */ diff --git a/src/corelib/tools/qvector.cpp b/src/corelib/tools/qvector.cpp index efc4b6a446..448c8e4c6a 100644 --- a/src/corelib/tools/qvector.cpp +++ b/src/corelib/tools/qvector.cpp @@ -230,7 +230,8 @@ Construct a vector from the std::initilizer_list given by \a args. - This constructor is only enabled if the compiler supports C++0x + This constructor is only enabled if the compiler supports C++11 initializer + lists. */ -- cgit v1.2.3