summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-05 13:52:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-05 13:52:17 +0100
commitc03d803a723e3325b210346126115457e914f605 (patch)
tree4de546352d3bd7f8534b07128cf946638790d93c /basctl/source
parent910817d7364253c8ed0dc876e5e38fdc707e0ee8 (diff)
Replace side-effect--only uses of makeStringAndClear() with setLength(0)
Change-Id: Iaf8011f1bd6a10b324653899b7f51458f7d0b68a
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/baside2b.cxx4
1 files changed, 2 insertions, 2 deletions
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 )