Commit fecf3a44 authored by David Gobbi's avatar David Gobbi
Browse files

Fix constness of keysym argument

parent 21d710f1
......@@ -258,8 +258,10 @@ const char *vtkWidgetEventTranslator::GetTranslation(const char *VTKEvent)
//----------------------------------------------------------------------------
unsigned long vtkWidgetEventTranslator::GetTranslation(unsigned long VTKEvent,
int modifier, char keyCode,
int repeatCount, char* keySym)
int modifier,
char keyCode,
int repeatCount,
const char* keySym)
{
EventMapIterator iter = this->EventMap->find(VTKEvent);
if ( iter != this->EventMap->end() )
......@@ -306,8 +308,9 @@ unsigned long vtkWidgetEventTranslator::GetTranslation(vtkEvent *VTKEvent)
//----------------------------------------------------------------------------
int vtkWidgetEventTranslator::RemoveTranslation(unsigned long VTKEvent,
int modifier, char keyCode,
int repeatCount, char* keySym)
int modifier, char keyCode,
int repeatCount,
const char* keySym)
{
vtkSmartPointer< vtkEvent > e = vtkSmartPointer< vtkEvent >::New();
e->SetEventId(VTKEvent);
......
......@@ -83,7 +83,7 @@ public:
unsigned long GetTranslation(unsigned long VTKEvent);
const char *GetTranslation(const char *VTKEvent);
unsigned long GetTranslation(unsigned long VTKEvent, int modifier, char keyCode,
int repeatCount, char* keySym);
int repeatCount, const char* keySym);
unsigned long GetTranslation(unsigned long VTKEvent, vtkEventData *edata);
unsigned long GetTranslation(vtkEvent *VTKEvent);
//@}
......@@ -95,7 +95,7 @@ public:
*/
int RemoveTranslation( unsigned long VTKEvent,
int modifier, char keyCode,
int repeatCount, char* keySym);
int repeatCount, const char* keySym);
int RemoveTranslation( vtkEvent *e );
int RemoveTranslation( vtkEventData *e );
int RemoveTranslation(unsigned long VTKEvent);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment