diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-12 13:02:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-12 13:08:33 +0100 |
commit | 82c2d3fe69f9732d2c178ad184a0ec2a598d386f (patch) | |
tree | f31c134e8c8295c630d4f7f77cc97052f0c25cdf /vcl | |
parent | c0cf59e9e227f02d85ab3528913522abcebc713c (diff) |
fix up some other single arg String::Erase conversions
Change-Id: Id04301261c100cb122d63fe75324967cf95b23ab
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/edit/textdoc.cxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/textview.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx index 96faa634e227..1dea032d652e 100644 --- a/vcl/source/edit/textdoc.cxx +++ b/vcl/source/edit/textdoc.cxx @@ -343,7 +343,7 @@ TextNode* TextNode::Split( sal_uInt16 nPos, sal_Bool bKeepEndingAttribs ) if ( nPos < maText.getLength() ) { aNewText = maText.copy( nPos ); - maText = maText.replaceAt( nPos, 1, "" ); + maText = maText.copy(0, nPos); } TextNode* pNew = new TextNode( aNewText ); diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index e26c1a21c220..cd614f1175a3 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -2093,7 +2093,7 @@ void TextView::drop( const ::com::sun::star::datatransfer::dnd::DropTargetDropEv } if ( !aText.isEmpty() && ( aText[ aText.getLength()-1 ] == LINE_SEP ) ) - aText = aText.replaceAt( aText.getLength()-1, 1, "" ); + aText = aText.copy(0, aText.getLength()-1); TextPaM aTempStart = mpImpl->maSelection.GetStart(); if ( ImplCheckTextLen( aText ) ) |