From 5a2e09989a4b9746a56f15fe7499067a4327fbae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 14 Jun 2015 13:35:37 +0200 Subject: cppcheck:redundantCondition Change-Id: Ib8b6342d1da526df6104125ded546b3f053c448b --- basic/source/runtime/runtime.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basic') 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 ) -- cgit