diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-30 10:49:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-05 08:54:14 +0200 |
commit | 492480440c4b636f70c815694deb30301b57e4f6 (patch) | |
tree | 738a7a2a56c175561d002d14b127e44a87bb7218 /svx | |
parent | f7b31b89ab09a50e217bb4c4c9a6edaa1884661d (diff) |
convert include/svx/tbcontrl.hxx from String to OUString
Change-Id: I7e5785c5edba06457f904d36373158fb9c08536b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 779753c45b5f..eca2e22e792b 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2048,20 +2048,18 @@ void SvxStyleToolBoxControl::FillStyleBox() // ----------------------------------------------------------------------- -void SvxStyleToolBoxControl::SelectStyle( const String& rStyleName ) +void SvxStyleToolBoxControl::SelectStyle( const OUString& rStyleName ) { SvxStyleBox_Impl* pBox = (SvxStyleBox_Impl*)GetToolBox().GetItemWindow( GetId() ); DBG_ASSERT( pBox, "Control not found!" ); if ( pBox ) { -// String aStrSel( pBox->GetSelectEntry() ); - String aStrSel( pBox->GetText() ); + OUString aStrSel( pBox->GetText() ); - if ( rStyleName.Len() > 0 ) + if ( !rStyleName.isEmpty() ) { if ( rStyleName != aStrSel ) -// pBox->SelectEntry( rStyleName ); pBox->SetText( rStyleName ); } else |