mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove redundant uint constructs in QColorDialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3f1f86b398
commit
62371e5749
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue