Kaydet (Commit) 0fd7c409 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1341778 Logically dead code

Change-Id: I83b167c44b1cb14681c2e5a3a27277f2bedd36c6
üst b0e7cf40
...@@ -331,20 +331,14 @@ bool FormulaGroupInterpreter::switchOpenCLDevice(const OUString& rDeviceId, bool ...@@ -331,20 +331,14 @@ bool FormulaGroupInterpreter::switchOpenCLDevice(const OUString& rDeviceId, bool
return false; return false;
} }
bool bSuccess = ::opencl::switchOpenCLDevice(&rDeviceId, bAutoSelect, bForceEvaluation); bool bSuccess = ::opencl::switchOpenCLDevice(&rDeviceId, bAutoSelect, bForceEvaluation);
if(!bSuccess) if (!bSuccess)
return false; return false;
delete msInstance; delete msInstance;
msInstance = nullptr; msInstance = new sc::opencl::FormulaGroupInterpreterOpenCL();
return true;
if (bOpenCLEnabled)
{
msInstance = new sc::opencl::FormulaGroupInterpreterOpenCL();
return msInstance != nullptr;
}
return false;
} }
void FormulaGroupInterpreter::getOpenCLDeviceInfo(sal_Int32& rDeviceId, sal_Int32& rPlatformId) void FormulaGroupInterpreter::getOpenCLDeviceInfo(sal_Int32& rDeviceId, sal_Int32& rPlatformId)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment