Menu

#73 zip.cpp: 9 * bad catch type ?

0.6.x target
open
nobody
None
5
2017-06-25
2017-06-25
dcb
No

zip.cpp:364:24: warning: catching polymorphic type 'class CZipException' by value [-Wcatch-value=]

Source code is

catch (CZipException e) {

Maybe better code

catch (const CZipException & e) {

There are eight duplicates in the same file.

Discussion


Log in to post a comment.