Kaydet (Commit) 7490d80c authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Catch exception always as const reference.

Change-Id: I7526a8724b66bbf23c5b38b76dcd6497ec409979
üst 64e00fab
...@@ -1414,7 +1414,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, ...@@ -1414,7 +1414,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc,
return true; return true;
} }
#undef NO_FALLBACK_TO_SWINTERP /* undef this for non-TDD runs */ #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"; std::cerr << "Dynamic formual compiler: unhandled token\n";
#ifdef NO_FALLBACK_TO_SWINTERP #ifdef NO_FALLBACK_TO_SWINTERP
assert(false); assert(false);
...@@ -1422,7 +1422,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, ...@@ -1422,7 +1422,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc,
return false; return false;
#endif #endif
} }
catch (OpenCLError &oce) { catch (const OpenCLError &oce) {
std::cerr << "Dynamic formula compiler: OpenCL error: "; std::cerr << "Dynamic formula compiler: OpenCL error: ";
std::cerr << oce.mError << "\n"; std::cerr << oce.mError << "\n";
#ifdef NO_FALLBACK_TO_SWINTERP #ifdef NO_FALLBACK_TO_SWINTERP
......
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