From c70d73809a6b36305f65e4ecb68acc3f63c7b304 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 28 Jun 2017 17:00:14 +0100 Subject: Use boost::starts_with --- libsolidity/ast/AST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity') diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 2df31eed..403f4b79 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -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 -- cgit