We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8af722 + eac65ff commit cf37b76Copy full SHA for cf37b76
src/_tkagg.cpp
@@ -231,13 +231,13 @@ bool load_tcl_tk(T lib)
231
{
232
// Try to fill Tcl/Tk global vars with function pointers. Return whether
233
// all of them have been filled.
234
- if (void* ptr = dlsym(lib, "Tcl_SetVar")) {
+ if (auto ptr = dlsym(lib, "Tcl_SetVar")) {
235
TCL_SETVAR = (Tcl_SetVar_t)ptr;
236
}
237
- if (void* ptr = dlsym(lib, "Tk_FindPhoto")) {
+ if (auto ptr = dlsym(lib, "Tk_FindPhoto")) {
238
TK_FIND_PHOTO = (Tk_FindPhoto_t)ptr;
239
240
- if (void* ptr = dlsym(lib, "Tk_PhotoPutBlock")) {
+ if (auto ptr = dlsym(lib, "Tk_PhotoPutBlock")) {
241
TK_PHOTO_PUT_BLOCK = (Tk_PhotoPutBlock_t)ptr;
242
243
return TCL_SETVAR && TK_FIND_PHOTO && TK_PHOTO_PUT_BLOCK;
0 commit comments