← Back to team overview

hugin-devs team mailing list archive

[Bug 1195436] Re: Scripting interface does not respect const qualifier

 

This issue can also cause trouble inside the script, if the Python
script is using the Panorama object or the like in a not intended way.
The const qualifier have their reason in the C++ code. If the script is
first using a const object to write and then the next step will work
with an undefined state of the whole object. So the script works not
correctly. And in this case it does not help, if the C++ part is called
later.

So please respect that and do not post code where you know that you are
violating the const qualifier. This is not a help for new developer.

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1195436

Title:
  Scripting interface does not respect const qualifier

Status in Hugin - Panorama Tools GUI:
  Confirmed

Bug description:
  The script interface does not respect the const qualifier to some (member) functions.
  E.g. Panorama::GetImages returns a const SrcImage. In C++ you can not modify it, but it works in Python. So in the scripting interface also the const qualifier should be respected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1195436/+subscriptions


Follow ups

References