diff options
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; |