]> sigrok.org Git - pulseview.git/commit
fix catching polymorphic types by value
authorDan Horák <redacted>
Fri, 23 Mar 2018 20:33:18 +0000 (21:33 +0100)
committerDan Horák <redacted>
Fri, 23 Mar 2018 21:18:40 +0000 (22:18 +0100)
commit30677c1392b54604b01558cf29b44572731659fc
tree029f9964cc38f19985731d5c32f24b8ea815606e
parentbf84211be02b096646cf28cf9dc7480029e4f439
fix catching polymorphic types by value

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
12 files changed:
main.cpp
pv/binding/device.cpp
pv/data/decodesignal.cpp
pv/data/signalbase.cpp
pv/devices/inputfile.cpp
pv/popups/channels.cpp
pv/session.cpp
pv/storesession.cpp
pv/toolbars/mainbar.cpp
pv/views/trace/analogsignal.cpp
pv/views/trace/decodetrace.cpp
pv/views/trace/logicsignal.cpp