loplugin:flatten in opencl
Change-Id: I9f45510eddb022013af751d232d4704432717ef6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91617 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -25,8 +25,9 @@ void OpenCLZone::hardDisable()
|
||||
{
|
||||
// protect ourselves from double calling etc.
|
||||
static bool bDisabled = false;
|
||||
if (!bDisabled)
|
||||
{
|
||||
if (bDisabled)
|
||||
return;
|
||||
|
||||
bDisabled = true;
|
||||
|
||||
std::shared_ptr<comphelper::ConfigurationChanges> xChanges(comphelper::ConfigurationChanges::create());
|
||||
@@ -40,6 +41,5 @@ void OpenCLZone::hardDisable()
|
||||
|
||||
releaseOpenCLEnv(&openclwrapper::gpuEnv);
|
||||
}
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Reference in New Issue
Block a user