diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 16:38:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 16:38:31 +0000 |
commit | caeb34848b548232304942463b65750bccb7a604 (patch) | |
tree | c5e7cdd13a584bee06fadc15100281cd82390a39 /basic | |
parent | 82c45185e29250f2e936f78524bdc144da02f2a1 (diff) |
C4706 silence assign in comparison warning
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 2 |
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 |