summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc/glosdoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/misc/glosdoc.cxx')
-rw-r--r--sw/source/uibase/misc/glosdoc.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/misc/glosdoc.cxx b/sw/source/uibase/misc/glosdoc.cxx
index f4e58d08ffcd..181f8c7247e1 100644
--- a/sw/source/uibase/misc/glosdoc.cxx
+++ b/sw/source/uibase/misc/glosdoc.cxx
@@ -18,6 +18,7 @@
*/
#include <algorithm>
+#include <string_view>
#include <com/sun/star/container/XNamed.hpp>
#include <comphelper/servicehelper.hxx>
@@ -47,9 +48,9 @@ using namespace ::com::sun::star::uno;
namespace
{
-OUString lcl_FullPathName(const OUString& sPath, const OUString& sName)
+OUString lcl_FullPathName(std::u16string_view sPath, std::u16string_view sName)
{
- return sPath + "/" + sName + SwGlossaries::GetExtension();
+ return OUString::Concat(sPath) + "/" + sName + SwGlossaries::GetExtension();
}
OUString lcl_CheckFileName( const OUString& rNewFilePath,