diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-09 16:37:34 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 16:52:18 +0100 |
commit | 97b4ac005269ba35d87151b55abca6a91c9b5e5f (patch) | |
tree | 5a8f9dbe5e4db22bc6309844615e300fcca62547 /configmgr | |
parent | c877e2e22bd045f3f6b05bf185b30ed32e7f0b39 (diff) |
Use indexed getToken()
Change-Id: If5338305e1955c2cad2d9073fdd3f09d6bf55093
Reviewed-on: https://gerrit.libreoffice.org/65666
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/winreg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/winreg.cxx b/configmgr/source/winreg.cxx index c7ba91fb205f..0fd372aa927a 100644 --- a/configmgr/source/winreg.cxx +++ b/configmgr/source/winreg.cxx @@ -211,9 +211,9 @@ void dumpWindowsRegistryKey(HKEY hKey, OUString const & aKeyName, TempFile &aFil sal_Int32 nCloseNode = 0; aFileHandle.writeString("<item oor:path=\""); - for(sal_Int32 nIndex = 0;; ++nIndex) + for(sal_Int32 nIndex = 0;;) { - OUString aNextPathPart = aPathAndNodes.getToken(nIndex, '\\'); + OUString aNextPathPart = aPathAndNodes.getToken(0, '\\', nIndex); if(!aNextPathPart.isEmpty()) { |