diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-23 22:57:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-23 22:57:29 +0900 |
commit | cfc76de73cecd5c569cbec280fe8aaa680956df3 (patch) | |
tree | 294561f215a17658f23eac128312542ab30721f1 /src/kernel | |
parent | e9567cacadf2fdc305f3ddbebce43ef395368c51 (diff) | |
download | tqt3-cfc76de73cecd5c569cbec280fe8aaa680956df3.tar.gz tqt3-cfc76de73cecd5c569cbec280fe8aaa680956df3.zip |
Removed dummy int parameter from TQVariant(bool, int).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/ntqvariant.h | 3 | ||||
-rw-r--r-- | src/kernel/qucomextra.cpp | 2 | ||||
-rw-r--r-- | src/kernel/qvariant.cpp | 8 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/kernel/ntqvariant.h b/src/kernel/ntqvariant.h index f794eeb1f..1d5206d9d 100644 --- a/src/kernel/ntqvariant.h +++ b/src/kernel/ntqvariant.h @@ -167,8 +167,7 @@ public: TQVariant( uint ); TQVariant( TQ_LLONG ); TQVariant( TQ_ULLONG ); - // ### Problems on some compilers ? - TQVariant( bool, int ); + TQVariant( bool ); TQVariant( double ); TQVariant( TQSizePolicy ); diff --git a/src/kernel/qucomextra.cpp b/src/kernel/qucomextra.cpp index 1bb064ca8..53af84dee 100644 --- a/src/kernel/qucomextra.cpp +++ b/src/kernel/qucomextra.cpp @@ -85,7 +85,7 @@ bool TQUType_TQVariant::convertFrom( TQUObject *o, TQUType *t ) else if ( isEqual( o->type, &static_QUType_int ) ) var = new TQVariant( static_QUType_int.get( o ) ); else if ( isEqual( o->type, &static_QUType_bool ) ) - var = new TQVariant( static_QUType_bool.get( o ), 42 ); + var = new TQVariant( static_QUType_bool.get( o ) ); else if ( isEqual( o->type, &static_QUType_double ) ) var = new TQVariant( static_QUType_double.get( o ) ); else if ( isEqual( o->type, &static_QUType_charstar ) ) diff --git a/src/kernel/qvariant.cpp b/src/kernel/qvariant.cpp index 6d734d6b6..f7479fb68 100644 --- a/src/kernel/qvariant.cpp +++ b/src/kernel/qvariant.cpp @@ -877,12 +877,10 @@ TQVariant::TQVariant( TQ_ULLONG val ) } /*! - Constructs a new variant with a boolean value, \a val. The integer - argument is a dummy, necessary for compatibility with some - compilers. + Constructs a new variant with a boolean value, \a val. */ -TQVariant::TQVariant( bool val, int ) -{ // this is the comment that does NOT name said compiler. +TQVariant::TQVariant( bool val ) +{ d = new Private; d->typ = Bool; d->value.b = val; |