summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-10-29 07:50:49 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-10-29 07:50:49 +0100
commita3f0eab294df3a48d497c2b985ec9655f2da2357 (patch)
tree5c3ea0a6a605b6c7da24cbc32e107032320e3e81 /sc
parent78f2f28e94be978786452224befb27f6f965b50b (diff)
cppcheck: Array index is used before limits check
Change-Id: I51f7408a81a10e2c586cb05b863f20b13bb7b263
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/optdlg/tpusrlst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx
index c19e7bda9a15..5fcb9bf0a74b 100644
--- a/sc/source/ui/optdlg/tpusrlst.cxx
+++ b/sc/source/ui/optdlg/tpusrlst.cxx
@@ -339,7 +339,7 @@ void ScTpUserLists::MakeListStr( OUString& rListStr )
{
rListStr += OUString(aStr[c]);
- while ( (aStr[c] == cDelimiter) && (c < nLen) )
+ while ( (c < nLen) && (aStr[c] == cDelimiter) )
c++;
}
}