Commit 85309b69 authored by Allison Vacanti's avatar Allison Vacanti
Browse files

Fix MSVC warning C4512 in KdTree and D3 classes.

warning C4512: '`anonymous-namespace'::TimeLog' : assignment operator
could not be generated.
parent 8f4ec2da
......@@ -90,6 +90,11 @@ public:
vtkTimerLog::MarkEndEvent(event);
}
}
private:
// Explicit disable copy/assignment to prevent MSVC from complaining (C4512)
TimeLog(const TimeLog&) = delete;
TimeLog& operator=(const TimeLog&) = delete;
};
}
......
......@@ -80,6 +80,11 @@ public:
vtkTimerLog::MarkEndEvent(event);
}
}
private:
// Explicit disable copy/assignment to prevent MSVC from complaining (C4512)
TimeLog(const TimeLog&) = delete;
TimeLog& operator=(const TimeLog&) = delete;
};
}
......
......@@ -123,6 +123,11 @@ public:
vtkTimerLog::MarkEndEvent(event);
}
}
private:
// Explicit disable copy/assignment to prevent MSVC from complaining (C4512)
TimeLog(const TimeLog&) = delete;
TimeLog& operator=(const TimeLog&) = delete;
};
}
......
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