Commit 21d710f1 authored by David Gobbi's avatar David Gobbi

Use const char pointer for filenames.

parent 15e306fe
......@@ -151,7 +151,7 @@ public:
}
//------------------------------------------------------------------------
void PushImageToQueue(vtkImageData*& data, char* fileName)
void PushImageToQueue(vtkImageData*& data, const char* fileName)
{
this->InputsLock.Lock();
{
......@@ -375,7 +375,8 @@ void vtkThreadedImageWriter::Initialize()
}
//----------------------------------------------------------------------------
void vtkThreadedImageWriter::EncodeAndWrite(vtkImageData* image, char* fileName)
void vtkThreadedImageWriter::EncodeAndWrite(vtkImageData* image,
const char* fileName)
{
// Error checking
if (image == nullptr)
......@@ -388,7 +389,8 @@ void vtkThreadedImageWriter::EncodeAndWrite(vtkImageData* image, char* fileName)
}
//----------------------------------------------------------------------------
void vtkThreadedImageWriter::PushImageToQueue(vtkImageData*& data, char* fileName)
void vtkThreadedImageWriter::PushImageToQueue(vtkImageData*& data,
const char* fileName)
{
this->Internals->SharedData.PushImageToQueue(data, fileName);
assert(data == nullptr);
......
......@@ -52,7 +52,7 @@ public:
* Use vtkErrorMacro to check that image is valid then
* call PushImageToQueue() internally if image is provided.
*/
void EncodeAndWrite(vtkImageData* image, char* fileName);
void EncodeAndWrite(vtkImageData* image, const char* fileName);
/**
* Push an image into the threaded writer. It is not safe to modify the image
......@@ -60,7 +60,7 @@ public:
* You may run into thread safety issues. Typically, the caller code will
* simply release reference to the data and stop using it.
*/
void PushImageToQueue(vtkImageData*& data, char* fileName);
void PushImageToQueue(vtkImageData*& data, const char* fileName);
/**
* Define the number of worker thread to use.
......
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