diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-08-15 16:56:09 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-08-15 16:56:46 +0400 |
commit | 1edb495a45fde1d788b409fd1a9a839bd370c426 (patch) | |
tree | 3f113ad6c8232843816ea1bebe4daa5fd8a842f9 /chart2/source | |
parent | 7cab33ab66e08f5757635b2989f83bbb7f9ebc67 (diff) |
convert GetName/Title/Description methods to OUString
Change-Id: Id16a2b29b1d6cf02b94cc6c423e2475a9cbeb8a3
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/ShapeController.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx index 999177409985..24c32c1061f0 100644 --- a/chart2/source/controller/main/ShapeController.cxx +++ b/chart2/source/controller/main/ShapeController.cxx @@ -231,12 +231,12 @@ void ShapeController::describeSupportedFeatures() IMPL_LINK( ShapeController, CheckNameHdl, AbstractSvxNameDialog*, pDialog ) { - String aName; + OUString aName; if ( pDialog ) { pDialog->GetName( aName ); } - if ( aName.Len() ) + if ( !aName.isEmpty() ) { DrawViewWrapper* pDrawViewWrapper = ( m_pChartController ? m_pChartController->GetDrawViewWrapper() : NULL ); if ( pDrawViewWrapper && pDrawViewWrapper->getNamedSdrObject( aName ) ) @@ -436,8 +436,8 @@ void ShapeController::executeDispatch_ObjectTitleDescription() SdrObject* pSelectedObj = pDrawViewWrapper->getSelectedObject(); if ( pSelectedObj ) { - String aTitle( pSelectedObj->GetTitle() ); - String aDescription( pSelectedObj->GetDescription() ); + OUString aTitle( pSelectedObj->GetTitle() ); + OUString aDescription( pSelectedObj->GetDescription() ); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if ( pFact ) { @@ -476,9 +476,7 @@ void ShapeController::executeDispatch_RenameObject() pDlg->SetCheckNameHdl( LINK( this, ShapeController, CheckNameHdl ) ); if ( pDlg.get() && ( pDlg->Execute() == RET_OK ) ) { - String aTmp; - pDlg->GetName(aTmp); - aName = aTmp; + pDlg->GetName(aName); if (pSelectedObj->GetName().equals(aName)) { pSelectedObj->SetName( aName ); |