starmath/source/parse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 36efdec23b86fe28c79fe672bb6862fb57b6e09a Author: Takeshi Abe <t...@fixedpoint.jp> Date: Mon Oct 3 09:03:30 2016 +0900 starmath: Assert the precondition for OUString#replaceAt() Change-Id: I56ee95f9196eb2b2b3cc71203251b98ff1dba951 Reviewed-on: https://gerrit.libreoffice.org/29464 Reviewed-by: Takeshi Abe <t...@fixedpoint.jp> Tested-by: Takeshi Abe <t...@fixedpoint.jp> diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 63886e5..4977a82 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -339,7 +339,7 @@ bool IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) void SmParser::Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText ) { - OSL_ENSURE( nPos + nLen <= m_aBufferString.getLength(), "argument mismatch" ); + assert( nPos + nLen <= m_aBufferString.getLength() ); m_aBufferString = m_aBufferString.replaceAt( nPos, nLen, rText ); sal_Int32 nChg = rText.getLength() - nLen; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits