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 | 0945629d19ceb915baeb735a30072a8691f9e8b6 (patch) | |
tree | a46dcf51bfa00b9751008df97c97d2be31a94164 | |
parent | 39efd30fd6a91ccdb676099783885bf8c3ed6788 (diff) |
C4706 silence assign in comparison warning
-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 ded4ba0176..c10ef568b2 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 |