summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/txtattr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/shells/txtattr.cxx')
-rw-r--r--sw/source/ui/shells/txtattr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx
index d5b8e3d06990..347966092828 100644
--- a/sw/source/ui/shells/txtattr.cxx
+++ b/sw/source/ui/shells/txtattr.cxx
@@ -423,12 +423,12 @@ void SwTextShell::ExecParaAttrArgs(SfxRequest &rReq)
case FN_DROP_CHAR_STYLE_NAME:
if( pItem )
{
- String sCharStyleName = ((const SfxStringItem*)pItem)->GetValue();
+ OUString sCharStyleName = ((const SfxStringItem*)pItem)->GetValue();
SfxItemSet aSet(GetPool(), RES_PARATR_DROP, RES_PARATR_DROP, 0L);
rSh.GetCurAttr(aSet);
SwFmtDrop aDropItem((const SwFmtDrop&)aSet.Get(RES_PARATR_DROP));
SwCharFmt* pFmt = 0;
- if(sCharStyleName.Len())
+ if(!sCharStyleName.isEmpty())
pFmt = rSh.FindCharFmtByName( sCharStyleName );
aDropItem.SetCharFmt( pFmt );
aSet.Put(aDropItem);