summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-16 16:38:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-16 16:38:31 +0000
commitcaeb34848b548232304942463b65750bccb7a604 (patch)
treec5e7cdd13a584bee06fadc15100281cd82390a39 /basic
parent82c45185e29250f2e936f78524bdc144da02f2a1 (diff)
C4706 silence assign in comparison warning
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/runtime.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 6e6b297b7044..3de2f480b92e 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -1043,7 +1043,7 @@ void SbiRuntime::TOSMakeTemp()
p->Broadcast( SBX_HINT_DATAWANTED );
SbxVariable* pDflt = NULL;
- if ( bVBAEnabled && ( p->GetType() == SbxOBJECT || p->GetType() == SbxVARIANT ) && ( pDflt = getDefaultProp( p ) ) )
+ if ( bVBAEnabled && ( p->GetType() == SbxOBJECT || p->GetType() == SbxVARIANT ) && ((pDflt = getDefaultProp(p)) != NULL) )
{
pDflt->Broadcast( SBX_HINT_DATAWANTED );
// replacing new p on stack causes object pointed by