diff options
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r-- | unoidl/source/unoidl-read.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx index 2bbe8b672dba..1a7633535579 100644 --- a/unoidl/source/unoidl-read.cxx +++ b/unoidl/source/unoidl-read.cxx @@ -91,9 +91,8 @@ OUString decomposeType( OUString nucl(type); *rank = 0; typeArguments->clear(); - while (nucl.startsWith("[]")) { + while (nucl.startsWith("[]", &nucl)) { ++*rank; - nucl = nucl.copy(2); } sal_Int32 i = nucl.indexOf('<'); if (i != -1) { |