vcl/source/edit/textdoc.cxx | 2 +- vcl/source/edit/textview.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 82c2d3fe69f9732d2c178ad184a0ec2a598d386f Author: Caolán McNamara <caol...@redhat.com> Date: Mon Aug 12 13:02:29 2013 +0100 fix up some other single arg String::Erase conversions Change-Id: Id04301261c100cb122d63fe75324967cf95b23ab diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx index 96faa63..1dea032 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 e26c1a2..cd614f1 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 ) )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits