diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-01-20 10:51:58 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-22 14:25:15 +0000 |
commit | e13a3d566ecc34a46e037aca1b2d70e58501e422 (patch) | |
tree | ea7c6a3633a7a9ac33375a8e157ece0befe2e4a4 /basctl/source/basicide/brkdlg.cxx | |
parent | df70e3fee18835303cff17294b1fd21b6dd9146e (diff) |
fdo#38838 Some removal/replacement of the String/UniString with OUString
Also used the new OUString::number(...) methods.
Change-Id: I3174c43d56d1ae359901bb8a13fe0096f2c74808
Reviewed-on: https://gerrit.libreoffice.org/1766
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'basctl/source/basicide/brkdlg.cxx')
-rw-r--r-- | basctl/source/basicide/brkdlg.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/basctl/source/basicide/brkdlg.cxx b/basctl/source/basicide/brkdlg.cxx index 6f424ce8c9b3..bb32586a1525 100644 --- a/basctl/source/basicide/brkdlg.cxx +++ b/basctl/source/basicide/brkdlg.cxx @@ -82,8 +82,7 @@ BreakPointDialog::BreakPointDialog( Window* pParent, BreakPointList& rBrkPntList for ( size_t i = 0, n = m_aModifiedBreakPointList.size(); i < n; ++i ) { BreakPoint* pBrk = m_aModifiedBreakPointList.at( i ); - OUString aEntryStr( "# " ); - aEntryStr += String::CreateFromInt32( pBrk->nLine ); + OUString aEntryStr( "# " + OUString::number(pBrk->nLine) ); aComboBox.InsertEntry( aEntryStr, COMBOBOX_APPEND ); } aComboBox.SetUpdateMode(true); @@ -111,8 +110,7 @@ BreakPointDialog::BreakPointDialog( Window* pParent, BreakPointList& rBrkPntList void BreakPointDialog::SetCurrentBreakPoint( BreakPoint* pBrk ) { - String aStr( "# " ); - aStr += String::CreateFromInt32( pBrk->nLine ); + OUString aStr( "# " + OUString::number(pBrk->nLine) ); aComboBox.SetText( aStr ); UpdateFields( pBrk ); } @@ -191,7 +189,7 @@ IMPL_LINK( BreakPointDialog, ButtonHdl, Button *, pButton ) else if ( pButton == &aNewButton ) { // keep checkbox in mind! - String aText( aComboBox.GetText() ); + OUString aText( aComboBox.GetText() ); size_t nLine; bool bValid = lcl_ParseText( aText, nLine ); if ( bValid ) @@ -200,8 +198,7 @@ IMPL_LINK( BreakPointDialog, ButtonHdl, Button *, pButton ) pBrk->bEnabled = aCheckBox.IsChecked(); pBrk->nStopAfter = (size_t) aNumericField.GetValue(); m_aModifiedBreakPointList.InsertSorted( pBrk ); - OUString aEntryStr( "# " ); - aEntryStr += String::CreateFromInt32( pBrk->nLine ); + OUString aEntryStr( "# " + OUString::number(pBrk->nLine) ); aComboBox.InsertEntry( aEntryStr, COMBOBOX_APPEND ); if (SfxDispatcher* pDispatcher = GetDispatcher()) pDispatcher->Execute( SID_BASICIDE_BRKPNTSCHANGED ); |