summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-13 13:22:04 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-13 13:22:04 +0200
commit3beaccc09dfedc560d171dbbf26f2592e046d903 (patch)
tree916e8e9cc44feab522ce2ff771ff9adb923768e8 /basic
parentf492e45dd2fd1f0ef59f37cd0c3f125203831e98 (diff)
Revert "i#64348 basic: fix CDec() crash if string is empty"
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxdec.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index f0cab347e512..59f5e015a737 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -194,8 +194,6 @@ void SbxDecimal::setUInt( unsigned int val )
bool SbxDecimal::setString( OUString* pOUString )
{
- assert(pOUString);
-
static LCID nLANGID = MAKELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US );
// Convert delimiter
@@ -473,11 +471,7 @@ start:
case SbxLPSTR:
case SbxSTRING:
case SbxBYREF | SbxSTRING:
- if( !p->pOUString )
- pnDecRes->setString( new OUString );
- else
- pnDecRes->setString( p->pOUString );
- break;
+ pnDecRes->setString( p->pOUString ); break;
case SbxOBJECT:
{
SbxValue* pVal = PTR_CAST(SbxValue,p->pObj);