diff libinterp/corefcn/event-queue.h @ 21307:61c96c37ce69

Use std::unique_ptr to replace deprecated std::auto_ptr. * ov-cell.h, event-queue.h, txt-eng.h, idx-vector.cc, idx-vector.h, unwind-prot.h: Use std::unique_ptr to replace deprecated std::auto_ptr.
author Rik <rik@octave.org>
date Fri, 19 Feb 2016 09:41:41 -0800
parents 1473547f50f5
children b571fc85953f
line wrap: on
line diff
--- a/libinterp/corefcn/event-queue.h	Thu Feb 18 21:20:01 2016 -0800
+++ b/libinterp/corefcn/event-queue.h	Fri Feb 19 09:41:41 2016 -0800
@@ -53,7 +53,7 @@
     if (! empty ())
       {
         // No leak on exception!
-        std::auto_ptr<elem> ptr (fifo.front ());
+        std::unique_ptr<elem> ptr (fifo.front ());
         fifo.pop ();
         ptr->run ();
       }