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,
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
......
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