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>bb10
parent
ae9afa6b9e
commit
7226630d29
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue