Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
21306:0152d8745c3d | 21307:61c96c37ce69 |
---|---|
51 void run_first (void) | 51 void run_first (void) |
52 { | 52 { |
53 if (! empty ()) | 53 if (! empty ()) |
54 { | 54 { |
55 // No leak on exception! | 55 // No leak on exception! |
56 std::auto_ptr<elem> ptr (fifo.front ()); | 56 std::unique_ptr<elem> ptr (fifo.front ()); |
57 fifo.pop (); | 57 fifo.pop (); |
58 ptr->run (); | 58 ptr->run (); |
59 } | 59 } |
60 } | 60 } |
61 | 61 |