summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-08-15 16:56:09 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-08-15 16:56:46 +0400
commit1edb495a45fde1d788b409fd1a9a839bd370c426 (patch)
tree3f113ad6c8232843816ea1bebe4daa5fd8a842f9 /sc
parent7cab33ab66e08f5757635b2989f83bbb7f9ebc67 (diff)
convert GetName/Title/Description methods to OUString
Change-Id: Id16a2b29b1d6cf02b94cc6c423e2475a9cbeb8a3
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index 6af9454cfe01..02965d508550 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -502,9 +502,7 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
if(RET_OK == pDlg->Execute())
{
ScDocShell* pDocSh = pViewData->GetDocShell();
- String aTmp;
- pDlg->GetName(aTmp);
- aName = aTmp;
+ pDlg->GetName(aName);
if (!aName.equals(pSelected->GetName()))
{
@@ -562,8 +560,8 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
if(SC_LAYER_INTERN != pSelected->GetLayer())
{
- String aTitle(pSelected->GetTitle());
- String aDescription(pSelected->GetDescription());
+ OUString aTitle(pSelected->GetTitle());
+ OUString aDescription(pSelected->GetDescription());
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "Dialogdiet fail!");
@@ -632,13 +630,13 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
IMPL_LINK( ScDrawShell, NameObjectHdl, AbstractSvxNameDialog*, pDialog )
{
- String aName;
+ OUString aName;
if( pDialog )
pDialog->GetName( aName );
ScDrawLayer* pModel = pViewData->GetDocument()->GetDrawLayer();
- if ( aName.Len() && pModel )
+ if ( !aName.isEmpty() && pModel )
{
SCTAB nDummyTab;
if ( pModel->GetNamedObject( aName, 0, nDummyTab ) )