QCollator: mark ctor explicit

QCollator and QLocale are not equivalent types, so there should
be no implicit conversion between them.

Change-Id: I395f8dc3c35b4202c9276c3eea0686176f8e07cc
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2013-11-13 11:40:26 +01:00 committed by The Qt Project
parent e3383ab646
commit 4225e71038

View File

@ -79,7 +79,7 @@ private:
class Q_CORE_EXPORT QCollator
{
public:
QCollator(const QLocale &locale = QLocale());
explicit QCollator(const QLocale &locale = QLocale());
QCollator(const QCollator &);
~QCollator();
QCollator &operator=(const QCollator &);