Kaydet (Commit) 3beaccc0 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Revert "i#64348 basic: fix CDec() crash if string is empty"

This reverts commit 375b01bf.
üst f492e45d
...@@ -194,8 +194,6 @@ void SbxDecimal::setUInt( unsigned int val ) ...@@ -194,8 +194,6 @@ void SbxDecimal::setUInt( unsigned int val )
bool SbxDecimal::setString( OUString* pOUString ) bool SbxDecimal::setString( OUString* pOUString )
{ {
assert(pOUString);
static LCID nLANGID = MAKELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US ); static LCID nLANGID = MAKELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US );
// Convert delimiter // Convert delimiter
...@@ -473,11 +471,7 @@ start: ...@@ -473,11 +471,7 @@ start:
case SbxLPSTR: case SbxLPSTR:
case SbxSTRING: case SbxSTRING:
case SbxBYREF | SbxSTRING: case SbxBYREF | SbxSTRING:
if( !p->pOUString ) pnDecRes->setString( p->pOUString ); break;
pnDecRes->setString( new OUString );
else
pnDecRes->setString( p->pOUString );
break;
case SbxOBJECT: case SbxOBJECT:
{ {
SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); SbxValue* pVal = PTR_CAST(SbxValue,p->pObj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment