Changeset 8026:d45d3f73689a in orange


Ignore:
Timestamp:
06/16/11 13:25:45 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
30c84438adc9c8b31ff1dd4d4e82b2ec9ccbc56e
Message:

Changed PyCATCH macros to catch exceptions by reference instead of value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/statc/statc.cpp

    r6531 r8026  
    4848#define PyCATCH_r(r) \ 
    4949  } \ 
    50 catch (pyexception err)   { err.restore(); return r; } \ 
    51 catch (exception err) { PYERROR(PyExc_StatcKernel, err.what(), r); } 
     50catch (pyexception& err)   { err.restore(); return r; } \ 
     51catch (exception& err) { PYERROR(PyExc_StatcKernel, err.what(), r); } 
    5252 
    5353PyObject *PyExc_StatcKernel; 
Note: See TracChangeset for help on using the changeset viewer.