Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Scott Wittenburg
VTK
Commits
21d710f1
Commit
21d710f1
authored
Jul 10, 2018
by
David Gobbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use const char pointer for filenames.
parent
15e306fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
IO/Asynchronous/vtkThreadedImageWriter.cxx
IO/Asynchronous/vtkThreadedImageWriter.cxx
+5
-3
IO/Asynchronous/vtkThreadedImageWriter.h
IO/Asynchronous/vtkThreadedImageWriter.h
+2
-2
No files found.
IO/Asynchronous/vtkThreadedImageWriter.cxx
View file @
21d710f1
...
...
@@ -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
);
...
...
IO/Asynchronous/vtkThreadedImageWriter.h
View file @
21d710f1
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment