summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-07 11:21:49 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-07 21:03:30 +0000
commitba95e61314fb310575fe1dfd035234f4d6d7ca02 (patch)
treeb318f19343d728519dae96db2937e72c5c7c4c5f /basic
parent6f1df6dca04579dea5e54113cc9c0003ee98ebfe (diff)
fix bug in SbxArray::Merge
bug was recently introduced by commit a5c232831395f8987a8395816c5a60105a52b6a0 "BASIC: Store directly SbxVarEntry in SbxArray" bug was found by clang-tidy Change-Id: Ibcce6d6024ac60eb143cd873760586a7f6231858 Reviewed-on: https://gerrit.libreoffice.org/23890 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxarray.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx
index 11faaef8d7f1..f78c376486da 100644
--- a/basic/source/sbx/sbxarray.cxx
+++ b/basic/source/sbx/sbxarray.cxx
@@ -343,7 +343,7 @@ void SbxArray::Merge( SbxArray* p )
{
// Take this element and clear the original.
rEntry2.mpVar = rEntry1.mpVar;
- rEntry2.mpVar.Clear();
+ rEntry1.mpVar.Clear();
break;
}
}