This is similar to 858248d055 (Fix declaration shadow warning in wxHtmlHelpFrame, 2021-04-21) and fixes another -Wshadow from gcc 11 by getting rid of the last parameter confusingly named as its type. See #19153.
858248d055