remove some range checks
which are more likely to hide an underlying bug than they are to help Change-Id: I118b592677df05246912d7fa3d7ab8ca2fe99377 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177999 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
b0d6329c05
commit
10c2eee93b
1 changed files with 0 additions and 3 deletions
|
@ -906,9 +906,6 @@ void CharAttribList::Remove(const EditCharAttrib* p)
|
|||
|
||||
void CharAttribList::Remove(sal_Int32 nPos)
|
||||
{
|
||||
if (nPos >= static_cast<sal_Int32>(maAttribs.size()))
|
||||
return;
|
||||
|
||||
maAttribs.erase(maAttribs.begin()+nPos);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue