Commit 201cac9a authored by David Gobbi's avatar David Gobbi

Use const char pointer for AddIconType

parent 4a85a50e
......@@ -363,7 +363,7 @@ void vtkGraphMapper::SetEdgeLineWidth(float width)
}
//----------------------------------------------------------------------------
void vtkGraphMapper::AddIconType(char *type, int index)
void vtkGraphMapper::AddIconType(const char *type, int index)
{
this->IconTypeToIndex->AddToMap(type, index);
}
......
......@@ -173,7 +173,7 @@ public:
* containing "type" as a value in the vertex attribute array specified by
* IconArrayName.
*/
void AddIconType(char *type, int index);
void AddIconType(const char *type, int index);
/**
* Clear all icon mappings.
......
......@@ -396,7 +396,7 @@ const char* vtkGraphLayoutView::GetIconArrayName()
}
//----------------------------------------------------------------------------
void vtkGraphLayoutView::AddIconType(char *type, int index)
void vtkGraphLayoutView::AddIconType(const char *type, int index)
{
this->GetGraphRepresentation()->AddVertexIconType(type, index);
}
......
......@@ -299,7 +299,7 @@ public:
* containing "type" as a value in the vertex attribute array specified by
* IconArrayName.
*/
void AddIconType(char *type, int index);
void AddIconType(const char *type, int index);
/**
* Clear all icon mappings.
......
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