summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-20 11:00:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-20 16:26:47 +0100
commit6a45bc96f90e853abfab6bd4648f27f0e0d91800 (patch)
tree8f727455244a8bb66f989da8374e75289a9ab06d /basic
parentbfe1aa0e79cd1b849721760e89f254870b3f8000 (diff)
very suspicious combination of used SbxValues and unused aRes
Looks like a regression from 4d949990ef1438fcae98262519c6af2b47e5ccf5 where for every other case we did... - XubString aRes; + ::rtl::OUString aRes; aTmp.eType = SbxSTRING; - aTmp.pString = &aRes; + aTmp.pOUString = &aRes; while for this case we did only... SbxValues aTmp; XubString aRes; aTmp.eType = SbxSTRING; - aTmp.pString = &aRes; Change-Id: I106cfbcc0fc0b27a9adcbb243d0d69c65b167005
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxstr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx
index abab0ee3662e..9576afe8e5f2 100644
--- a/basic/source/sbx/sbxstr.cxx
+++ b/basic/source/sbx/sbxstr.cxx
@@ -134,8 +134,9 @@
if( ( p->eType & (~SbxBYREF) ) == SbxDOUBLE )
{
SbxValues aTmp;
- XubString aRes;
+ rtl::OUString aRes;
aTmp.eType = SbxSTRING;
+ aTmp.pOUString = &aRes;
if( p->eType == SbxDOUBLE )
ImpPutDouble( &aTmp, p->nDouble, sal_True ); // true = bCoreString
else