[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Wed Oct 5 01:21:03 UTC 2016


 starmath/source/parse.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 36efdec23b86fe28c79fe672bb6862fb57b6e09a
Author: Takeshi Abe <tabe at 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 <tabe at fixedpoint.jp>
    Tested-by: Takeshi Abe <tabe at 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;


More information about the Libreoffice-commits mailing list