From 91957a75aab89415d92aa137d73fc5cf892a0408 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Jun 2015 11:27:00 +0200 Subject: loplugin:cstylecast: deal with those that are (technically) const_cast Change-Id: I5bad1428e96c76f7d295f69e10beea4397d560ff --- i18npool/qa/cppunit/test_textsearch.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'i18npool/qa') diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx index db2d4022250e..3de164ac6007 100644 --- a/i18npool/qa/cppunit/test_textsearch.cxx +++ b/i18npool/qa/cppunit/test_textsearch.cxx @@ -61,11 +61,11 @@ void TestTextSearch::testICU() OUString aString( "abcdefgh" ); OUString aPattern( "e" ); - IcuUniString aSearchPat( (const UChar*)aPattern.getStr(), aPattern.getLength() ); + IcuUniString aSearchPat( reinterpret_cast(aPattern.getStr()), aPattern.getLength() ); pRegexMatcher = new RegexMatcher( aSearchPat, nSearchFlags, nErr ); - IcuUniString aSource( (const UChar*)aString.getStr(), aString.getLength() ); + IcuUniString aSource( reinterpret_cast(aString.getStr()), aString.getLength() ); pRegexMatcher->reset( aSource ); CPPUNIT_ASSERT( pRegexMatcher->find( 0, nErr ) ); @@ -80,10 +80,10 @@ void TestTextSearch::testICU() OUString aString2( "acababaabcababadcdaa" ); OUString aPattern2( "a" ); - IcuUniString aSearchPat2( (const UChar*)aPattern2.getStr(), aPattern2.getLength() ); + IcuUniString aSearchPat2( reinterpret_cast(aPattern2.getStr()), aPattern2.getLength() ); pRegexMatcher = new RegexMatcher( aSearchPat2, nSearchFlags, nErr ); - IcuUniString aSource2( (const UChar*)aString2.getStr(), aString2.getLength() ); + IcuUniString aSource2( reinterpret_cast(aString2.getStr()), aString2.getLength() ); pRegexMatcher->reset( aSource2 ); CPPUNIT_ASSERT( pRegexMatcher->find( 0, nErr ) ); -- cgit