** Changed in: hugin
       Status: Fix Committed => Fix Released

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

Title:
  compiling PTBatcherGUI: invalid conversion from ‘const wxChar*’ to
  ‘wxChar*’

Status in Hugin - Panorama Tools GUI:
  Fix Released

Bug description:
  There's a minor problem in PTBatcherGUI on my system (Kubuntu 11.4,
  using wxWidgets 2.8) when compiling bleeding edge hugin
  (5216:b7b7c4cbbfd0), python_scripting branch. Here's what the compiler
  says:

  [ 80%] Building CXX object 
src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/PTBatcherGUI.cpp.o             
    
  /home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp: In 
member function ‘virtual wxChar* BatchIPCConnection::OnRequest(const wxString&, 
const wxString&, int*, wxIPCFormat)’:
  
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:395:16:
 error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
  
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:400:16:
 error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
  
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:405:16:
 error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
  
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:446:12:
 error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
  make[2]: *** 
[src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/PTBatcherGUI.cpp.o] Fehler 1
  make[1]: *** [src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/all] Fehler 2
  make: *** [all] Fehler 2

  I'm sure it's just an oversight somewhere, but the virtual wxWidgets
  function that's overridden actually returns a wxChar*, and the
  overriding function tries to return wxEmptyString, which seems to be
  of const wxChar* type. I used a temporary workaround here and cast
  wxEmptyString to (wxChar*), but this should be fixed properly.

  Kay

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

_______________________________________________
Mailing list: https://launchpad.net/~hugin-bug-hunters
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~hugin-bug-hunters
More help   : https://help.launchpad.net/ListHelp

Reply via email to