diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-07-25 12:37:16 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-07-25 12:37:34 +0300 |
commit | 718d55d141dbb9cfc23a80490f4aeb90d4ff338c (patch) | |
tree | 96b07b7458b05ca9537a073c3c8228d5f754f8cd /desktop | |
parent | db8ee318293da8967a8294dc558ffae898ba8e6b (diff) |
Fix some misleading comments
Change-Id: I0f29133c3e9b881835b970b2226583ec348828cb
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/opencl.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx index 4c75ae76c269..521d225d13b8 100644 --- a/desktop/source/app/opencl.cxx +++ b/desktop/source/app/opencl.cxx @@ -158,7 +158,7 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop) // OpenCL device changed - sanity check it and disable if bad. boost::optional<sal_Int32> nOrigMinimumSize = officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::get(); - { // set the group size to something small for quick testing. + { // set the minumum group size to something small for quick testing. std::shared_ptr<comphelper::ConfigurationChanges> xBatch(comphelper::ConfigurationChanges::create()); officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::set(3 /* small */, xBatch); xBatch->commit(); @@ -166,11 +166,9 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop) bool bSucceeded = testOpenCLCompute(xDesktop, aURL); - // it passed -> save the device. - { + { // restore the minimum group size std::shared_ptr<comphelper::ConfigurationChanges> xBatch(comphelper::ConfigurationChanges::create()); officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::set(nOrigMinimumSize, xBatch); - // allow the user to subsequently manually enable it. officecfg::Office::Common::Misc::SelectedOpenCLDeviceIdentifier::set(aSelectedCLDeviceVersionID, xBatch); xBatch->commit(); } |