diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-06-14 13:35:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-15 11:56:55 +0200 |
commit | 5a2e09989a4b9746a56f15fe7499067a4327fbae (patch) | |
tree | 846226a33613d2de8621717ced337328649d1155 /basic | |
parent | 7eac94da23f2f4460252eae5fa073fd1d833ba99 (diff) |
cppcheck:redundantCondition
Change-Id: Ib8b6342d1da526df6104125ded546b3f053c448b
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 53a10788f67b..4ccf50582a40 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -1628,7 +1628,7 @@ inline bool checkUnoStructCopy( bool bVBA, SbxVariableRef& refVal, SbxVariableRe SbxDataType eVarType = refVar->GetType(); SbxDataType eValType = refVal->GetType(); - if ( !( !bVBA || refVar->GetType() != SbxEMPTY ) || !refVar->CanWrite() ) + if ( ( bVBA && ( eVarType == SbxEMPTY ) ) || !refVar->CanWrite() ) return false; if ( eValType != SbxOBJECT ) |