summaryrefslogtreecommitdiff
path: root/basic/source/comp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-26 08:37:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-26 11:46:49 +0200
commitda527cd45b9676c9d1d8eb171ecbe55e8b8f9031 (patch)
tree55b371f90d96a1c743e45d5d47079ef9d4306d0c /basic/source/comp
parentf613e69b49d71da45dafd3ae326dcca531552605 (diff)
Upcoming improved loplugin:elidestringvar: basic
Change-Id: Ie5422ac19289693c44ce81548a74bd727bb0be36 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97193 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic/source/comp')
-rw-r--r--basic/source/comp/parser.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index 72dc9217f6fc..6819c3ae588d 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -857,8 +857,7 @@ void SbiParser::AddConstants()
addStringConst( aPublics, "vbTab", "\x09" );
addStringConst( aPublics, "vbVerticalTab", "\x0B" );
- OUString aNullCharStr(u'\0');
- addStringConst( aPublics, "vbNullChar", aNullCharStr );
+ addStringConst( aPublics, "vbNullChar", OUString(u'\0') );
}
// ERROR n