8000 Backport PR #13365: Fix gcc warning · matplotlib/matplotlib@d05799e · GitHub
[go: up one dir, main page]

Skip to content

Commit d05799e

Browse files
NelleVMeeseeksDev[bot]
authored andcommitted
Backport PR #13365: Fix gcc warning
1 parent d316c74 commit d05799e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_tkagg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static int PyAggImagePhoto(ClientData clientdata, Tcl_Interp *interp, int
114114
try {
115115
destbuffer = new agg::int8u[deststride * destheight];
116116
}
117-
catch (std::bad_alloc) {
117+
catch (const std::bad_alloc &) {
118118
TCL_APPEND_RESULT(interp, "could not allocate memory", (char *)NULL);
119119
return TCL_ERROR;
120120
}

0 commit comments

Comments
 (0)
0