Use boost::starts_with

This commit is contained in:
Alex Beregszaszi 2017-06-28 17:00:14 +01:00
parent 06fe61f89b
commit c70d73809a

View File

@ -534,7 +534,7 @@ bool Literal::isHexNumber() const
{
if (token() != Token::Number)
return false;
return value().substr(0, 2) == "0x";
return boost::starts_with(value(), "0x");
}
bool Literal::looksLikeAddress() const