turn condition into assert in qt_get_hex_rgb()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-08-19 06:02:46 +03:00
parent 27e5b160db
commit 91be374beb

View file

@ -60,8 +60,7 @@ static inline int hex2int(char s)
bool qt_get_hex_rgb(const char *name, const int length, QRgb *rgb)
{
if(name[0] != '#')
return false;
Q_ASSERT(name[0] == '#');
name++;
const int len = (length - 1);
int r, g, b;