diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-06 00:37:17 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-06 00:37:23 +0200 |
commit | 274ecb49b70b3f01d47546e3b44317946c106042 (patch) | |
tree | e7baa97cd0924087869cbf2a7b04d8ecf7509a52 /editeng | |
parent | 3208f0cb805de6b2ac5f2e1c5d067cd3b845d924 (diff) |
ParaPortionList::SafeGetObject: remove SAL_WARN_IF, called on purpose
Gazillions of warnings leading nowhere.. all calling places now should handle
this gracefully.
Change-Id: I74b6dacb5a4a5adb9af73aa1adeee2c5b2a9323a
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 01c6cab35811..67ab2af678b9 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -824,15 +824,11 @@ sal_Int32 ParaPortionList::FindParagraph(long nYOffset) const const ParaPortion* ParaPortionList::SafeGetObject(sal_Int32 nPos) const { - SAL_WARN_IF( nPos < 0 || nPos >= (sal_Int32)maPortions.size(), "editeng", - "ParaPortionList::SafeGetObject - nPos out of bounds: " << nPos << " size: " << maPortions.size()); return 0 <= nPos && nPos < (sal_Int32)maPortions.size() ? maPortions[nPos].get() : nullptr; } ParaPortion* ParaPortionList::SafeGetObject(sal_Int32 nPos) { - SAL_WARN_IF( nPos < 0 || nPos >= (sal_Int32)maPortions.size(), "editeng", - "ParaPortionList::SafeGetObject - nPos out of bounds: " << nPos << " size: " << maPortions.size()); return 0 <= nPos && nPos < (sal_Int32)maPortions.size() ? maPortions[nPos].get() : nullptr; } |