summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-24 14:19:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-24 16:19:19 +0200
commitf4c0c3fef7571e8e172c9b27c8b4a390fe72fddd (patch)
tree8a6678638999198240b3b82faa4b4c2f4690af2d /basic
parent0c34e7b8b1fe394e8f730c13bfa31e5f8000d095 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/image.cxx1
-rw-r--r--basic/source/comp/parser.cxx1
2 files changed, 0 insertions, 2 deletions
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 );
}