sc/source/filter/excel/xecontent.cxx |    3 ++-
 sc/source/filter/excel/xestring.cxx  |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 9ff56812741029ad17204cff53357751687d9b6c
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Oct 25 14:16:48 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Oct 25 15:23:18 2022 +0200

    tdf#151484 Data Validity list looses separation when saving as XLS
    
    regression from
        commit fbb41798b86c5ed35eb80aa07a5ee7c9866ac4e8
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Fri Mar 18 09:46:52 2022 +0200
        tdf#133603 remove some string copying
    
    Change-Id: Ie241a7d5e54673b35c643c7c20dc100ba7925647
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141808
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/source/filter/excel/xecontent.cxx 
b/sc/source/filter/excel/xecontent.cxx
index c9820285c9f1..3dc1e3803d4c 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1776,7 +1776,8 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uInt32 
nScHandle ) :
                             sFormulaBuf.append( aToken );
                             if (nStringIx<0)
                                 break;
-                            mxString1->Append(u"\0");
+                            sal_Unicode cUnicodeChar = 0;
+                            mxString1->Append( 
std::u16string_view(&cUnicodeChar, 1) );
                             sFormulaBuf.append( ',' );
                             sListBuf.append( ',' );
                         }
diff --git a/sc/source/filter/excel/xestring.cxx 
b/sc/source/filter/excel/xestring.cxx
index cb76518e6b41..295f37709594 100644
--- a/sc/source/filter/excel/xestring.cxx
+++ b/sc/source/filter/excel/xestring.cxx
@@ -148,7 +148,8 @@ void XclExpString::AppendByte( sal_Unicode cChar, 
rtl_TextEncoding eTextEnc )
 {
     if( !cChar )
     {
-        BuildAppend( "\0" );
+        char cByteChar = 0;
+        BuildAppend( std::string_view(&cByteChar, 1) );
     }
     else
     {

Reply via email to