C++11 delete some contructors which are not wanted.

Change-Id: I844a0872e81f1824928814edb8d21c0b6384283d
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Stephen Kelly 2012-01-08 20:21:34 +01:00 committed by Qt by Nokia
parent ae9afa6b9e
commit 7226630d29

View File

@ -389,10 +389,10 @@ public:
private:
// force compile error, prevent QVariant(bool) to be called
inline QVariant(void *) { Q_ASSERT(false); }
inline QVariant(void *) Q_DECL_EQ_DELETE;
#ifdef QT_NO_CAST_FROM_ASCII
// force compile error when implicit conversion is not wanted
inline QVariant(const char *) { Q_ASSERT(false); }
inline QVariant(const char *) Q_DECL_EQ_DELETE;
#endif
public:
typedef Private DataPtr;