mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
turn condition into assert in qt_get_hex_rgb()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
27e5b160db
commit
91be374beb
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue