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

New commits:
commit 2bf7232a981ec009335562a799183055d2933f67
Author: Kohei Yoshida <kohei.yosh...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to