JNI Convenience: Make single argument ctors explicit.
Change-Id: I330e4acf9b944fc72066b608653edd4686620b7e Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
parent
ca0ec4043f
commit
ac611399fe
@ -95,11 +95,11 @@ private:
|
|||||||
class QJNIObject
|
class QJNIObject
|
||||||
{
|
{
|
||||||
public:
|
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(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(jclass clazz, const char *sig, ...);
|
||||||
QJNIObject(jobject obj) : d(new QJNIObjectPrivate(obj)) { }
|
explicit QJNIObject(jobject obj) : d(new QJNIObjectPrivate(obj)) { }
|
||||||
|
|
||||||
virtual ~QJNIObject() { }
|
virtual ~QJNIObject() { }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user