From 2d94bfbabf1948317ad85f9fa3be7d2fcb895a30 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 25 Aug 2018 20:56:47 +0200 Subject: Use optimized OUString concatenation Change-Id: I95e1a00caf2ef82f2931cc3a2709cbb3c6cc3d26 --- sc/source/ui/docshell/docsh8.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 9514e3b3f6ef..ce54a91532d9 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -119,8 +119,7 @@ namespace // get connection - OUString aConnUrl("sdbc:dbase:"); - aConnUrl += aPath; + const OUString aConnUrl{"sdbc:dbase:" + aPath}; // sdbc:dbase is based on the css.sdbc.FILEConnectionProperties UNOIDL service, so we can // transport the raw rtl_TextEncoding value instead of having to translate it into a IANA -- cgit v1.2.3