diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-02 13:34:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-02 16:03:54 +0100 |
commit | c1198cf209aa343575d0ebccde1053ac2909e67a (patch) | |
tree | ffaf4dc56790c3d4344a2c69fb4bcaf35587b8d1 /sw/source/ui/uiview/viewling.cxx | |
parent | c6a8abf3687caf66259792fbfe5b0b9b69d0e345 (diff) |
remove yet another StringHash impl
Change-Id: I1f7894a4a08b193b48dceb40bf0a451d4a3b3d6d
Diffstat (limited to 'sw/source/ui/uiview/viewling.cxx')
-rw-r--r-- | sw/source/ui/uiview/viewling.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx index fc1bf1ca5bfc..1620eb96e114 100644 --- a/sw/source/ui/uiview/viewling.cxx +++ b/sw/source/ui/uiview/viewling.cxx @@ -497,7 +497,7 @@ String SwView::GetThesaurusLookUpText( bool bSelection ) const return bSelection ? m_pWrtShell->GetSelTxt() : m_pWrtShell->GetCurWord(); } -void SwView::InsertThesaurusSynonym( const String &rSynonmText, const String &rLookUpText, bool bSelection ) +void SwView::InsertThesaurusSynonym( const OUString &rSynonmText, const OUString &rLookUpText, bool bSelection ) { sal_Bool bOldIns = m_pWrtShell->IsInsMode(); m_pWrtShell->SetInsMode( sal_True ); @@ -516,11 +516,11 @@ void SwView::InsertThesaurusSynonym( const String &rSynonmText, const String &rL // include "in word" character to the left and right in order to // preserve those. Therefore count those "in words" in order to modify // the selection accordingly. - const sal_Unicode* pChar = rLookUpText.GetBuffer(); + const sal_Unicode* pChar = rLookUpText.getStr(); xub_StrLen nLeft = 0; while (pChar && *pChar++ == CH_TXTATR_INWORD) ++nLeft; - pChar = rLookUpText.Len() ? rLookUpText.GetBuffer() + rLookUpText.Len() - 1 : 0; + pChar = rLookUpText.getLength() ? rLookUpText.getStr() + rLookUpText.getLength() - 1 : 0; xub_StrLen nRight = 0; while (pChar && *pChar-- == CH_TXTATR_INWORD) ++nRight; |