summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxbool.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-24 12:19:44 +0200
committerNoel Grandin <noel@peralex.com>2016-02-24 12:19:44 +0200
commit670c2b3ca99c9ae4a75c508408023de198e3ac5e (patch)
tree2c71b7d2e598fea55b9d6096f8214c72f07eeda7 /basic/source/sbx/sbxbool.cxx
parent459e3fe7c97abe922e42e464ace2914546602f44 (diff)
simply the SbxRes stuff, inheriting from OUString is icky
Change-Id: Ie9794ea164d587ad87ee13d360cb3abc18166051
Diffstat (limited to 'basic/source/sbx/sbxbool.cxx')
-rw-r--r--basic/source/sbx/sbxbool.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/sbx/sbxbool.cxx b/basic/source/sbx/sbxbool.cxx
index 402214b4b275..563c9f47070b 100644
--- a/basic/source/sbx/sbxbool.cxx
+++ b/basic/source/sbx/sbxbool.cxx
@@ -70,9 +70,9 @@ enum SbxBOOL ImpGetBool( const SbxValues* p )
nRes = SbxFALSE;
if ( p->pOUString )
{
- if( p->pOUString->equalsIgnoreAsciiCase( SbxRes( StringId::True ) ) )
+ if( p->pOUString->equalsIgnoreAsciiCase( GetSbxRes( StringId::True ) ) )
nRes = SbxTRUE;
- else if( !p->pOUString->equalsIgnoreAsciiCase( SbxRes( StringId::False ) ) )
+ else if( !p->pOUString->equalsIgnoreAsciiCase( GetSbxRes( StringId::False ) ) )
{
// it can be convertible to a number
bool bError = true;
@@ -174,9 +174,9 @@ void ImpPutBool( SbxValues* p, sal_Int16 n )
case SbxSTRING:
case SbxLPSTR:
if ( !p->pOUString )
- p->pOUString = new OUString( SbxRes( n ? StringId::True : StringId::False ) );
+ p->pOUString = new OUString( GetSbxRes( n ? StringId::True : StringId::False ) );
else
- *p->pOUString = SbxRes( n ? StringId::True : StringId::False );
+ *p->pOUString = GetSbxRes( n ? StringId::True : StringId::False );
break;
case SbxOBJECT: