diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2015-04-09 14:14:21 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-08-10 03:41:43 +0000 |
| commit | 3bf4c222e5f8f3a4044befb8d784afea598946cc (patch) | |
| tree | 1b6397694c085f0ea487b7608f150a4fee344ea8 /src/sql/drivers/mysql/qsql_mysql.cpp | |
| parent | d9d9420d8d637064b9a5cc25ea91d96767b31a85 (diff) | |
Make Qt::Initialization a C++11 class enum
And declare Qt::Uninitialized to be the same value because we're not
interested in the scoping rules of C++11 class enums. We're only
interested in avoiding the cast from Qt::Uninitialized to an integer.
That is to avoid the mistaken:
QVector<Custom> vector(5, Qt::Uninitialized);
which is actually implicitly:
QVector<Custom> vector(5, Custom(Qt::Uninitialized));
and likely not what the developer wanted.
Change-Id: I27eaacb532114dd188c4ffff13d374eb698bfbab
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
