Commit fbee20fc authored by Robert Maynard's avatar Robert Maynard

Mark the local value for the result of GetNumberOfValues as const.

We aren't modifying the value, so no reason to not have it as const.
parent 84ea9b84
......@@ -485,7 +485,7 @@ public:
const vtkm::cont::ArrayHandle<T,SIn> &input,
vtkm::cont::ArrayHandle<T,SOut> &output)
{
vtkm::Id numberOfValues = input.GetNumberOfValues();
const vtkm::Id numberOfValues = input.GetNumberOfValues();
CopyPortal(input.PrepareForInput(DeviceAdapterTag()),
output.PrepareForOutput(numberOfValues, DeviceAdapterTag()));
}
......@@ -530,7 +530,7 @@ public:
const vtkm::cont::ArrayHandle<T,SIn> &input,
vtkm::cont::ArrayHandle<T,SOut>& output)
{
vtkm::Id numberOfValues = input.GetNumberOfValues();
const vtkm::Id numberOfValues = input.GetNumberOfValues();
if (numberOfValues <= 0)
{
output.PrepareForOutput(0, DeviceAdapterTag());
......@@ -545,7 +545,7 @@ public:
const vtkm::cont::ArrayHandle<T,SIn> &input,
vtkm::cont::ArrayHandle<T,SOut>& output)
{
vtkm::Id numberOfValues = input.GetNumberOfValues();
const vtkm::Id numberOfValues = input.GetNumberOfValues();
if (numberOfValues <= 0)
{
output.PrepareForOutput(0, DeviceAdapterTag());
......
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