[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Oct 30 00:20:30 CET 2013


 sc/source/core/opencl/formulagroupcl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7490d80c05d20e837cc11672ac58fa3cf1f61207
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Tue Oct 29 19:16:21 2013 -0400

    Catch exception always as const reference.
    
    Change-Id: I7526a8724b66bbf23c5b38b76dcd6497ec409979

diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index fb37ed6..875a259 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -1414,7 +1414,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc,
         return true;
     }
 #undef NO_FALLBACK_TO_SWINTERP /* undef this for non-TDD runs */
-    catch (UnhandledToken &ut) {
+    catch (const UnhandledToken&) {
         std::cerr << "Dynamic formual compiler: unhandled token\n";
 #ifdef NO_FALLBACK_TO_SWINTERP
         assert(false);
@@ -1422,7 +1422,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc,
         return false;
 #endif
     }
-    catch (OpenCLError &oce) {
+    catch (const OpenCLError &oce) {
         std::cerr << "Dynamic formula compiler: OpenCL error: ";
         std::cerr << oce.mError << "\n";
 #ifdef NO_FALLBACK_TO_SWINTERP


More information about the Libreoffice-commits mailing list