fix catching polymorphic types by value
authorDan Horák <dan@danny.cz>
Fri, 23 Mar 2018 20:33:18 +0000 (21:33 +0100)
committerDan Horák <dan@danny.cz>
Fri, 23 Mar 2018 21:18:40 +0000 (22:18 +0100)
Compiling with GCC 8 produces a new warning about catching polymorphic
types by value. Proper way is to use references instead.

/home/sharkcz/projects/pulseview/main.cpp: In function ‘int main(int, char**)’:
/home/sharkcz/projects/pulseview/main.cpp:229:22: error: catching polymorphic type ‘class std::exception’ by value [-Werror=catch-value=]
   } catch (exception e) {
                      ^
cc1plus: all warnings being treated as errors


No differences found