diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:27:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:27:00 +0200 |
commit | 91957a75aab89415d92aa137d73fc5cf892a0408 (patch) | |
tree | f70e30816dc893357985ff9902b46e45acd7744e /i18npool/source/search | |
parent | loplugin:cstylecast: deal with those that are (technically) const_cast (diff) | |
download | core-91957a75aab89415d92aa137d73fc5cf892a0408.tar.gz core-91957a75aab89415d92aa137d73fc5cf892a0408.zip |
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I5bad1428e96c76f7d295f69e10beea4397d560ff
Diffstat (limited to 'i18npool/source/search')
-rw-r--r-- | i18npool/source/search/textsearch.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx index b8005fb66ecf..b62b56c06c33 100644 --- a/i18npool/source/search/textsearch.cxx +++ b/i18npool/source/search/textsearch.cxx @@ -783,7 +783,7 @@ void TextSearch::RESrchPrepare( const ::com::sun::star::util::SearchOptions& rOp nIcuSearchFlags |= UREGEX_CASE_INSENSITIVE; UErrorCode nIcuErr = U_ZERO_ERROR; // assumption: transliteration didn't mangle regexp control chars - IcuUniString aIcuSearchPatStr( (const UChar*)rPatternStr.getStr(), rPatternStr.getLength()); + IcuUniString aIcuSearchPatStr( reinterpret_cast<const UChar*>(rPatternStr.getStr()), rPatternStr.getLength()); #ifndef DISABLE_WORDBOUND_EMULATION // for conveniance specific syntax elements of the old regex engine are emulated // - by replacing \< with "word-break followed by a look-ahead word-char" @@ -860,7 +860,7 @@ SearchResult TextSearch::RESrchFrwrd( const OUString& searchStr, // use the ICU RegexMatcher to find the matches UErrorCode nIcuErr = U_ZERO_ERROR; - const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), endPos); + const IcuUniString aSearchTargetStr( reinterpret_cast<const UChar*>(searchStr.getStr()), endPos); pRegexMatcher->reset( aSearchTargetStr); // search until there is a valid match for(;;) @@ -915,7 +915,7 @@ SearchResult TextSearch::RESrchBkwrd( const OUString& searchStr, // TODO: use ICU's backward searching once it becomes available // as its replacement using forward search is not as good as the real thing UErrorCode nIcuErr = U_ZERO_ERROR; - const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), startPos); + const IcuUniString aSearchTargetStr( reinterpret_cast<const UChar*>(searchStr.getStr()), startPos); pRegexMatcher->reset( aSearchTargetStr); if (!lcl_findRegex( pRegexMatcher, endPos, nIcuErr)) return aRet; |