From f4c0c3fef7571e8e172c9b27c8b4a390fe72fddd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 24 Jun 2020 14:19:04 +0200 Subject: Remove no-longer-relevant comments ...left over by 27239ad23006b1fd1ddb21467f4c1fd637b560d5 "basic: String -> OUString", > // Force length 1 and make char 0 afterwards > - String aNullCharStr( rtl::OUString(" ") ); > - aNullCharStr.SetChar( 0, 0 ); > + OUString aNullCharStr( (sal_Unicode)0); > return aNullCharStr; and > // Force length 1 and make char 0 afterwards > - String aNullCharStr( rtl::OUString(" ") ); > - aNullCharStr.SetChar( 0, 0 ); > + OUString aNullCharStr((sal_Unicode)0); > addStringConst( aPublics, "vbNullChar", aNullCharStr ); Change-Id: Icbf69ff7b92374b690cb5c7f0129c6a494db48f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97031 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basic/source/classes/image.cxx | 1 - basic/source/comp/parser.cxx | 1 - 2 files changed, 2 deletions(-) (limited to 'basic') diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index ec4901a549ff..038179334595 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -661,7 +661,6 @@ OUString SbiImage::GetString( short nId ) const sal_uInt32 nLen = nNextOff - nOff - 1; if( nLen == 1 ) { - // Force length 1 and make char 0 afterwards OUString aNullCharStr( u'\0'); return aNullCharStr; } diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index d26f4de63fc7..72dc9217f6fc 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -857,7 +857,6 @@ void SbiParser::AddConstants() addStringConst( aPublics, "vbTab", "\x09" ); addStringConst( aPublics, "vbVerticalTab", "\x0B" ); - // Force length 1 and make char 0 afterwards OUString aNullCharStr(u'\0'); addStringConst( aPublics, "vbNullChar", aNullCharStr ); } -- cgit