diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2012-04-30 12:14:11 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-23 12:42:41 (GMT) |
commit | 500ce56eb2a3554e1f968fb1cbeaeb9bfd3e1ff8 (patch) | |
tree | 329ee113841d9cb6bb4fb7fbf2e8741691b50c27 /src/gui/widgets | |
parent | 4b69ada361117757a1d9dfd6a9cd444fcb433edc (diff) | |
download | Qt-500ce56eb2a3554e1f968fb1cbeaeb9bfd3e1ff8.zip Qt-500ce56eb2a3554e1f968fb1cbeaeb9bfd3e1ff8.tar.gz Qt-500ce56eb2a3554e1f968fb1cbeaeb9bfd3e1ff8.tar.bz2 |
Fix warning about narrowing inside {}
Such as
qdialogbuttonbox.cpp:259:1: warning: narrowing conversion of
‘2147483650u’ from ‘unsigned int’ to ‘const int’ inside { }
[-Wnarrowing]
Cherry-picked from qtbase/e1d53553259e7edefb2a76712fd6a1ddc072d22d.
Change-Id: I7fa4b80cc21d5f4765c229f62ff977e7b9076e99
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qdialogbuttonbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qdialogbuttonbox.cpp b/src/gui/widgets/qdialogbuttonbox.cpp index b0f14ca..8e69e5f 100644 --- a/src/gui/widgets/qdialogbuttonbox.cpp +++ b/src/gui/widgets/qdialogbuttonbox.cpp @@ -212,7 +212,7 @@ static QDialogButtonBox::ButtonRole roleFor(QDialogButtonBox::StandardButton but return QDialogButtonBox::InvalidRole; } -static const int layouts[2][5][14] = +static const uint layouts[2][5][14] = { // Qt::Horizontal { @@ -407,7 +407,7 @@ void QDialogButtonBoxPrivate::layoutButtons() tmpPolicy = 4; // Mac modeless } - const int *currentLayout = layouts[orientation == Qt::Vertical][tmpPolicy]; + const uint *currentLayout = layouts[orientation == Qt::Vertical][tmpPolicy]; if (center) buttonLayout->addStretch(); |