summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/drwtxtex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-11 16:18:45 +0200
committerNoel Grandin <noel@peralex.com>2013-10-15 12:25:44 +0200
commit267cb3b0f7ea47d503463b48fb4aa5387e6caef4 (patch)
tree47756a0a86af1eda242a4596031a7587db161e27 /sw/source/ui/shells/drwtxtex.cxx
parente49bff52853c88635b5ce6d140b78933aca5fc33 (diff)
convert sw/source/ui/shells/*.cxx from String to OUString
Change-Id: I8321849c7964bfb3aeb894e68819755aaf883c44
Diffstat (limited to 'sw/source/ui/shells/drwtxtex.cxx')
-rw-r--r--sw/source/ui/shells/drwtxtex.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx
index 910497d489e4..c30db2c2c476 100644
--- a/sw/source/ui/shells/drwtxtex.cxx
+++ b/sw/source/ui/shells/drwtxtex.cxx
@@ -137,11 +137,11 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
case SID_THES:
{
- String aReplaceText;
+ OUString aReplaceText;
SFX_REQUEST_ARG( rReq, pItem2, SfxStringItem, SID_THES, sal_False );
if (pItem2)
aReplaceText = pItem2->GetValue();
- if (aReplaceText.Len() > 0)
+ if (!aReplaceText.isEmpty())
ReplaceTextWithSynonym( pOLV->GetEditView(), aReplaceText );
break;
}
@@ -1012,8 +1012,8 @@ void SwDrawTextShell::StateInsert(SfxItemSet &rSet)
}
else
{
- String sSel(pOLV->GetSelected());
- sSel.Erase(255);
+ OUString sSel(pOLV->GetSelected());
+ sSel = sSel.copy(0, std::min(255, sSel.getLength()));
aHLinkItem.SetName(comphelper::string::stripEnd(sSel, ' '));
}