Author Topic: CamelCase variable problem  (Read 2104 times)


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6070
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CamelCase variable problem
« Reply #1 on: January 01, 2025, 02:49:40 am »
If the variable does not match, why the compiler hasn't report this?

Maybe, the # if branch is not active in your reported case?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 77
Re: CamelCase variable problem
« Reply #2 on: January 01, 2025, 04:54:24 am »
I just spotted this by accident (open the file by mistake and spotted it) as the variable does not match the variable in the #if code block.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1673
Re: CamelCase variable problem
« Reply #3 on: January 02, 2025, 02:07:03 pm »
Fixed in r13601, thank you.

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 77
Re: CamelCase variable problem
« Reply #4 on: January 02, 2025, 10:23:58 pm »
Thanks for taking the time to sort this out.