summaryrefslogtreecommitdiff
path: root/i18npool/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:27:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:27:00 +0200
commit91957a75aab89415d92aa137d73fc5cf892a0408 (patch)
treef70e30816dc893357985ff9902b46e45acd7744e /i18npool/qa
parent34c2adbdfb32927468778e786437eecf8ece8249 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I5bad1428e96c76f7d295f69e10beea4397d560ff
Diffstat (limited to 'i18npool/qa')
-rw-r--r--i18npool/qa/cppunit/test_textsearch.cxx8
1 files changed, 4 insertions, 4 deletions
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<const UChar*>(aPattern.getStr()), aPattern.getLength() );
pRegexMatcher = new RegexMatcher( aSearchPat, nSearchFlags, nErr );
- IcuUniString aSource( (const UChar*)aString.getStr(), aString.getLength() );
+ IcuUniString aSource( reinterpret_cast<const UChar*>(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<const UChar*>(aPattern2.getStr()), aPattern2.getLength() );
pRegexMatcher = new RegexMatcher( aSearchPat2, nSearchFlags, nErr );
- IcuUniString aSource2( (const UChar*)aString2.getStr(), aString2.getLength() );
+ IcuUniString aSource2( reinterpret_cast<const UChar*>(aString2.getStr()), aString2.getLength() );
pRegexMatcher->reset( aSource2 );
CPPUNIT_ASSERT( pRegexMatcher->find( 0, nErr ) );