aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-04-22 15:00:11 -0600
committerBen Burdette <bburdette@gmail.com>2020-04-22 15:00:11 -0600
commit3bc9155dfc14434f5e9566fd15c79141899f6d07 (patch)
treeffb6b730e5f58f871e4d15603257bf8a25805daf
parente4fb9a38493a041861fe5c75bc8ddd129a2e5262 (diff)
a few more 'format's rremoved
-rw-r--r--src/libexpr/lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index c34e5c383..85376a08f 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -127,14 +127,14 @@ or { return OR_KW; }
try {
yylval->n = boost::lexical_cast<int64_t>(yytext);
} catch (const boost::bad_lexical_cast &) {
- throw ParseError(format("invalid integer '%1%'") % yytext);
+ throw ParseError("invalid integer '%1%'", yytext);
}
return INT;
}
{FLOAT} { errno = 0;
yylval->nf = strtod(yytext, 0);
if (errno != 0)
- throw ParseError(format("invalid float '%1%'") % yytext);
+ throw ParseError("invalid float '%1%'", yytext);
return FLOAT;
}