diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-10-03 09:03:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-10-05 01:18:35 +0000 |
commit | 36efdec23b86fe28c79fe672bb6862fb57b6e09a (patch) | |
tree | a218abba606bfc2db11b0c3277d4f7d9686532ae /starmath/source | |
parent | 1d37ad2575870a4cc3f4b73a55cae4f7147f0d12 (diff) |
starmath: Assert the precondition for OUString#replaceAt()
Change-Id: I56ee95f9196eb2b2b3cc71203251b98ff1dba951
Reviewed-on: https://gerrit.libreoffice.org/29464
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/parse.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 63886e5a51d8..4977a828e282 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; |