Commit 3509c6ae authored by Sean McBride's avatar Sean McBride

Use VTK_DELETE_FUNCTION to silence VS2015 warning

parent 15841f3c
Pipeline #19235 passed with stage
......@@ -252,9 +252,7 @@ private:
UseLog(useLog)
{}
// Silence warning C4512 on MSVC2015: "assignment operator could not be
// generated.". This class is never copied, so no need for assignment.
CopyToPoints& operator=(const CopyToPoints &) { return *this; }
CopyToPoints& operator=(const CopyToPoints &) VTK_DELETE_FUNCTION;
// Use input array:
template <class ArrayT>
......
......@@ -80,12 +80,7 @@ struct TemplateCastRayWorker
NumIntersections(0)
{}
// Silence warning C4512 on MSVC2015: "assignment operator could not be
// generated.". This class is never copied, so no need for assignment.
TemplateCastRayWorker& operator=(const TemplateCastRayWorker &)
{
return *this;
}
TemplateCastRayWorker& operator=(const TemplateCastRayWorker &) VTK_DELETE_FUNCTION;
// Execute the algorithm with all arrays set to NULL.
void operator()()
......
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