From e8227dc4af54c39e871b12f2e846fa54cff11581 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 25 Nov 2020 09:41:33 +0100 Subject: loplugin:stringview (clang-cl) Change-Id: I47b44c80b2a5e3c9d84f5d7257efe17f138a1067 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106563 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- configmgr/source/winreg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configmgr') diff --git a/configmgr/source/winreg.cxx b/configmgr/source/winreg.cxx index 6e4690500996..e5a92d094435 100644 --- a/configmgr/source/winreg.cxx +++ b/configmgr/source/winreg.cxx @@ -226,7 +226,7 @@ void dumpWindowsRegistryKey(HKEY hKey, OUString const & aKeyName, TempFile &aFil if(nCommandSeparator != -1) { OUString aNodeOp = aNextPathPart.copy(nCommandSeparator + 1); - writeAttributeValue(aFileHandle, aNextPathPart.copy(0, nCommandSeparator - 1)); + writeAttributeValue(aFileHandle, aNextPathPart.subView(0, nCommandSeparator - 1)); aFileHandle.writeString("\" oor:op=\""); writeAttributeValue(aFileHandle, aNodeOp); } -- cgit