summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/basesh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/shells/basesh.cxx')
-rw-r--r--sw/source/ui/shells/basesh.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/shells/basesh.cxx b/sw/source/ui/shells/basesh.cxx
index a4ffed05acb2..e4823c5d24c7 100644
--- a/sw/source/ui/shells/basesh.cxx
+++ b/sw/source/ui/shells/basesh.cxx
@@ -702,7 +702,7 @@ void SwBaseShell::Execute(SfxRequest &rReq)
{
SwWait aWait( *rView.GetDocShell(), sal_True );
- String aGrfName, aFltName;
+ OUString aGrfName, aFltName;
const Graphic aGrf( pGalleryItem->GetGraphic() );
if ( nSelType & nsSelectionType::SEL_GRF )
@@ -768,13 +768,13 @@ void SwBaseShell::Execute(SfxRequest &rReq)
{
aInsTblOpts.mnInsMode = 0;
// Delimiter
- String sDelim = static_cast< const SfxStringItem* >(pItem)->GetValue();
- if(sDelim.Len())
- cDelim = sDelim.GetChar(0);
+ OUString sDelim = static_cast< const SfxStringItem* >(pItem)->GetValue();
+ if(!sDelim.isEmpty())
+ cDelim = sDelim[0];
// AutoFormat
if(SFX_ITEM_SET == pArgs->GetItemState( FN_PARAM_2, sal_True, &pItem))
{
- String sAutoFmt = static_cast< const SfxStringItem* >(pItem)->GetValue();
+ OUString sAutoFmt = static_cast< const SfxStringItem* >(pItem)->GetValue();
pAutoFmtTbl = new SwTableAutoFmtTbl;
pAutoFmtTbl->Load();