Commit 8d666d80 authored by Julien Schueller's avatar Julien Schueller Committed by Pierre-Henri Wuillemin

Fix -Wcatch-value warning in refPtr_tpl.h

warning: catching polymorphic type ‘class std::bad_alloc’ by value
parent 9cb603fc
Pipeline #23387636 passed with stages
in 4 minutes 35 seconds
......@@ -122,7 +122,7 @@ namespace gum {
__refcount = 0;
__val = from;
} catch (std::bad_alloc) {
} catch (std::bad_alloc &) {
if (*old_refcount == 1) {
__val = from;
delete old_val;
......
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