From 274ecb49b70b3f01d47546e3b44317946c106042 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 6 May 2017 00:37:17 +0200 Subject: 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 --- editeng/source/editeng/editdoc.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'editeng') 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; } -- cgit