Use a RAII-based helper class to reset this flag automatically on scope exit instead of doing it manually. This also ensures that we restore the original value rather than just resetting it which would be more correct in the (admittedly, very unlikely) case when any of the functions changing m_Deleting is called recursively.