Skip to content

Georeferencing: Fix variable shadowing#2490

Open
dl3sdo wants to merge 1 commit intoOpenOrienteering:masterfrom
dl3sdo:fix-variable-shadowing
Open

Georeferencing: Fix variable shadowing#2490
dl3sdo wants to merge 1 commit intoOpenOrienteering:masterfrom
dl3sdo:fix-variable-shadowing

Conversation

@dl3sdo
Copy link
Copy Markdown
Member

@dl3sdo dl3sdo commented Apr 5, 2026

The definition of ok_forward and ok_inverse inside the if block shadows the outer variable definitions.
However, if the intention is to ignore the outcome of proj_transform.forward then the variables being defined inside
are dummy ones and should be named differently.

@dl3sdo dl3sdo requested a review from dg0yt April 5, 2026 16:27
@pkturner
Copy link
Copy Markdown
Contributor

pkturner commented Apr 6, 2026

This patch, in cases that change the effect, appears to be an improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants