basic/source/comp/buffer.cxx | 2 +- basic/source/comp/token.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 9fddd34834e8a08c60c291b367074f40ac787b12 Author: Arnaud VERSINI <arnaud.vers...@pm.me> AuthorDate: Sun Dec 1 15:52:21 2024 +0100 Commit: Arnaud Versini <arnaud.vers...@pm.me> CommitDate: Wed Feb 26 07:58:16 2025 +0100 basic : use more OUString literals in basic comp Change-Id: Ib67bee7e4ba85602be266bb7acc23c52251548b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177611 Tested-by: Jenkins Reviewed-by: Arnaud Versini <arnaud.vers...@pm.me> diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index 06dafe7a21d7..0ff898fd6940 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -82,7 +82,7 @@ void SbiBuffer::Chain( sal_uInt32 off ) if ((i + sizeof(sal_uInt32)) > GetSize()) { m_aErrCode = ERRCODE_BASIC_INTERNAL_ERROR; - m_sErrMsg = "BACKCHAIN"; + m_sErrMsg = u"BACKCHAIN"_ustr; break; } auto ip = m_aBuf.begin() + i; diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index 2c68b883da89..864402c73aa7 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -274,13 +274,13 @@ const OUString& SbiTokenizer::Symbol( SbiToken t ) switch( t ) { case NEG : - aSym = "-"; + aSym = u"-"_ustr; return aSym; case EOS : - aSym = ":/CRLF"; + aSym = u":/CRLF"_ustr; return aSym; case EOLN : - aSym = "CRLF"; + aSym = u"CRLF"_ustr; return aSym; default: break; @@ -296,7 +296,7 @@ const OUString& SbiTokenizer::Symbol( SbiToken t ) const sal_Unicode *p = aSym.getStr(); if (*p <= ' ') { - aSym = "???"; + aSym = u"???"_ustr; } return aSym; }