From c03d803a723e3325b210346126115457e914f605 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Jan 2017 13:52:17 +0100 Subject: Replace side-effect--only uses of makeStringAndClear() with setLength(0) Change-Id: Iaf8011f1bd6a10b324653899b7f51458f7d0b68a --- basctl/source/basicide/baside2b.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index a8c6d9fee332..0468e1265472 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2736,7 +2736,7 @@ void CodeCompleteListBox::KeyInput( const KeyEvent& rKeyEvt ) if( !aTabInsertedStr.isEmpty() && aTabInsertedStr != aFuncBuffer.toString() ) { - aFuncBuffer.makeStringAndClear(); + aFuncBuffer.setLength(0); aFuncBuffer = aFuncBuffer.append(aTabInsertedStr); } aFuncBuffer = aFuncBuffer.remove(aFuncBuffer.getLength()-1, 1); @@ -2799,7 +2799,7 @@ void CodeCompleteWindow::InsertEntry( const OUString& aStr ) void CodeCompleteWindow::ClearListBox() { pListBox->Clear(); - pListBox->aFuncBuffer.makeStringAndClear(); + pListBox->aFuncBuffer.setLength(0); } void CodeCompleteWindow::SetTextSelection( const TextSelection& aSel ) -- cgit