From 89bb0b0dcd8dc4656d0047cd10702d1c471c0fa1 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 26 Sep 2019 12:46:41 +0300 Subject: Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase Change-Id: I00e7ce62940907b5f4efc2b7f23f355c3e43ed6b Reviewed-on: https://gerrit.libreoffice.org/79686 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- unoidl/source/sourceprovider-scanner.l | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unoidl/source') diff --git a/unoidl/source/sourceprovider-scanner.l b/unoidl/source/sourceprovider-scanner.l index d0dd5a0dc155..1700259e5878 100644 --- a/unoidl/source/sourceprovider-scanner.l +++ b/unoidl/source/sourceprovider-scanner.l @@ -244,8 +244,7 @@ ALNUM {DIGIT}|{ALPHA} unsigned char c = yytext[0]; yyextra->errorMessage = c >= ' ' && c <= '~' ? OUString("invalid character \"" + OUStringLiteral1(c) + "\"") - : OUString( - "invalid byte x" + OUString(OUString::number(c, 16)).toAsciiUpperCase()); + : OUString("invalid byte x" + OUString::number(c, 16).toAsciiUpperCase()); return TOK_ERROR; } -- cgit