diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-18 12:19:04 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-19 10:44:59 +0200 |
commit | ac60fba3b5a506f6659f268a8b4fa8e1da600603 (patch) | |
tree | 0d51cc5dbb91253fd49513d08fffdac8747726ad /unotools | |
parent | 556aa12b84ef6f6d6baf56781925d0868693fe55 (diff) |
delegating a constructor can't work like this, fdo#55033
Change-Id: I6b057ad68054fe5806daec722b3bfe4e33bc3602
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/textsearch.hxx | 13 | ||||
-rw-r--r-- | unotools/source/i18n/textsearch.cxx | 2 |
2 files changed, 2 insertions, 13 deletions
diff --git a/unotools/inc/unotools/textsearch.hxx b/unotools/inc/unotools/textsearch.hxx index 42a9e2738a35..2812ee6a2f0a 100644 --- a/unotools/inc/unotools/textsearch.hxx +++ b/unotools/inc/unotools/textsearch.hxx @@ -71,23 +71,12 @@ private: long nTransliterationFlags; public: - SearchParam( const String &rText, + SearchParam( const rtl::OUString &rText, SearchType eSrchType = SearchParam::SRCH_NORMAL, sal_Bool bCaseSensitive = sal_True, sal_Bool bWordOnly = sal_False, sal_Bool bSearchInSelection = sal_False ); - // Wrapper to use OUString as parameter - SearchParam( const ::rtl::OUString &rText, - SearchType eSrchType = SearchParam::SRCH_NORMAL, - sal_Bool bCaseSensitive = sal_True, - sal_Bool bWordOnly = sal_False, - sal_Bool bSearchInSelection = sal_False ) - { - String rText2(rText); - SearchParam( rText2, eSrchType, bCaseSensitive, bWordOnly, bSearchInSelection ); - } - SearchParam( const SearchParam& ); const String& GetSrchStr() const { return sSrchStr; } diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index e0dd0615ebd5..05eecd8249e9 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -36,7 +36,7 @@ namespace utl { // ............................................................................ -SearchParam::SearchParam( const String &rText, +SearchParam::SearchParam( const rtl::OUString &rText, SearchType eType, sal_Bool bCaseSensitive, sal_Bool bWrdOnly, |