diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-18 13:17:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-19 10:54:42 +0200 |
commit | 4ebde2bc461e9661d7264340398b972fb69a89a6 (patch) | |
tree | f8d823767f31fc17733f5f361cf51018e04cd59f /sw | |
parent | 8d620216102b6597d0152135ac10aeff268971d9 (diff) |
convert sw/inc/unosrch.hxx from String to OUString
Change-Id: Ic25aef1e37cfa66402b7acf13f3fc4cdbc48d350
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unosrch.hxx | 4 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/unosrch.hxx b/sw/inc/unosrch.hxx index 8b71eac57ebf..9b683bb3f29b 100644 --- a/sw/inc/unosrch.hxx +++ b/sw/inc/unosrch.hxx @@ -44,8 +44,8 @@ class SwXTextSearch : public cppu::WeakImplHelper3 { friend class SwXTextDocument; - String sSearchText; - String sReplaceText; + OUString sSearchText; + OUString sReplaceText; SwSearchProperties_Impl* pSearchProperties; SwSearchProperties_Impl* pReplaceProperties; diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 1b3e57d027cd..65735a588c06 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -754,7 +754,7 @@ sal_Int32 SwXTextDocument::replaceAll(const Reference< util::XSearchDescriptor > nResult = (sal_Int32)pUnoCrsr->Find( aSearch, !pSearch->bStyles, eStart, eEnd, bCancel, (FindRanges)eRanges, - pSearch->sSearchText.Len() ? &aSearchOpt : 0, + !pSearch->sSearchText.isEmpty() ? &aSearchOpt : 0, &aReplace ); } else if(pSearch->bStyles) @@ -884,7 +884,7 @@ SwUnoCrsr* SwXTextDocument::FindAny(const Reference< util::XSearchDescriptor > nResult = (sal_Int32)pUnoCrsr->Find( aSearch, !pSearch->bStyles, eStart, eEnd, bCancel, (FindRanges)eRanges, - pSearch->sSearchText.Len() ? &aSearchOpt : 0, + !pSearch->sSearchText.isEmpty() ? &aSearchOpt : 0, 0 ); } else if(pSearch->bStyles) |