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; }