JNI Convenience: Make single argument ctors explicit.

Change-Id: I330e4acf9b944fc72066b608653edd4686620b7e
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
Christian Strømme 2013-08-16 17:27:42 +02:00 committed by The Qt Project
parent ca0ec4043f
commit ac611399fe

View File

@ -95,11 +95,11 @@ private:
class QJNIObject
{
public:
QJNIObject(const char *className) : d(new QJNIObjectPrivate(className)) { }
explicit QJNIObject(const char *className) : d(new QJNIObjectPrivate(className)) { }
QJNIObject(const char *className, const char *sig, ...);
QJNIObject(jclass clazz) : d(new QJNIObjectPrivate(clazz)) { }
explicit QJNIObject(jclass clazz) : d(new QJNIObjectPrivate(clazz)) { }
QJNIObject(jclass clazz, const char *sig, ...);
QJNIObject(jobject obj) : d(new QJNIObjectPrivate(obj)) { }
explicit QJNIObject(jobject obj) : d(new QJNIObjectPrivate(obj)) { }
virtual ~QJNIObject() { }