[Development] Qt 5.3 header diff: QtSql

Thiago Macieira thiago.macieira at intel.com
Wed Apr 23 09:28:46 CEST 2014


Em qua 23 abr 2014, às 09:17:37, Olivier Goffart escreveu:
> Just a little problem.
> 
> +#if QT_DEPRECATED_SINCE(5, 3)
>      QSqlError( const QString& driverText = QString(),
>                  const QString& databaseText = QString(),
>                  ErrorType type = NoError,
>                  int number = -1);
> +#endif
> +    QSqlError(const QString &driverText,
> +              const QString &databaseText,
> +              ErrorType type,
> +              const QString &errorCode);
> 
> First, the deprecated constructor is missing the QT_DEPRECATED
> Second, the default arguments should go on the new constructor.

Agreed on the first, can't do for the second. If you add the default arguments, 
the new constructor becomes ambiguous.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list