remove redundant uint constructs in QColorDialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-02-10 10:12:37 +02:00
parent 3f1f86b398
commit 62371e5749

View file

@ -398,7 +398,7 @@ int QColorDialog::customCount()
*/ */
QRgb QColorDialog::customColor(int index) QRgb QColorDialog::customColor(int index)
{ {
if (uint(index) >= uint(customCount())) if (index >= customCount())
return qRgb(255, 255, 255); return qRgb(255, 255, 255);
initRGB(); initRGB();
return cusrgb[index]; return cusrgb[index];
@ -409,7 +409,7 @@ QRgb QColorDialog::customColor(int index)
*/ */
void QColorDialog::setCustomColor(int index, QRgb color) void QColorDialog::setCustomColor(int index, QRgb color)
{ {
if (uint(index) >= uint(customCount())) if (index >= customCount())
return; return;
initRGB(); initRGB();
customSet = true; customSet = true;
@ -422,7 +422,7 @@ void QColorDialog::setCustomColor(int index, QRgb color)
void QColorDialog::setStandardColor(int index, QRgb color) void QColorDialog::setStandardColor(int index, QRgb color)
{ {
if (uint(index) >= uint(6 * 8)) if (index >= int(6 * 8))
return; return;
initRGB(); initRGB();
stdrgb[index] = color; stdrgb[index] = color;