Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c615b5 commit 023d0c6Copy full SHA for 023d0c6
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