diff options
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/source/openclconfig.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/openclconfig.cxx b/opencl/source/openclconfig.cxx index 18a9f865be00..7517cf3fecdf 100644 --- a/opencl/source/openclconfig.cxx +++ b/opencl/source/openclconfig.cxx @@ -76,7 +76,7 @@ OUString getToken(const OUString& string, sal_Int32& index) while ((p = token.indexOf('%', i)) >= 0) { if (p > i) - result.append(token.copy(i, p - i)); + result.appendCopy(token, i, p - i); if (p < token.getLength() - 2) { result.append(OUStringLiteral1(token.copy(p+1, 2).toInt32(16))); @@ -87,7 +87,7 @@ OUString getToken(const OUString& string, sal_Int32& index) i = token.getLength(); } } - result.append(token.copy(i)); + result.appendCopy(token,i); return result.makeStringAndClear(); } |