8000 Merge pull request #13365 from cgohlke/patch-4 · matplotlib/matplotlib@b262ed5 · GitHub
[go: up one dir, main page]

Skip to content

Commit b262ed5

Browse files
authored
Merge pull request #13365 from cgohlke/patch-4
Fix gcc warning
2 parents ebbb258 + f082f0e commit b262ed5

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
@@ -118,7 +118,7 @@ static int PyAggImagePhoto(ClientData clientdata, Tcl_Interp *interp, int
118118
try {
119119
destbuffer = new agg::int8u[deststride * destheight];
120120
}
121-
catch (std::bad_alloc) {
121+
catch (const std::bad_alloc &) {
122122
TCL_APPEND_RESULT(interp, "could not allocate memory", (char *)NULL);
123123
return TCL_ERROR;
124124
}

0 commit comments

Comments
 (0)
0