diff libinterp/corefcn/__ftp__.cc @ 29299:20092ae957da

Add discard() as an alias for set() for unwind_actions. * unwind-prot.h (unwind_action, unwind_action_safe): Add new member function discard() which calls set() with no arguments. * unwind-prot.h (unwind_action::run, unwind_action_safe::run): Replace call to set() with call to discard(). * __ftp__.cc (F__ftp_mget__), urlwrite.cc (Furlwrite), url-transfer.cc (base_url_transfer::mget_directory): Replace calls to set() with discard().
author Rik <rik@octave.org>
date Sat, 16 Jan 2021 11:50:42 -0800
parents 28913793f678
children 7854d5752dd2
line wrap: on
line diff
--- a/libinterp/corefcn/__ftp__.cc	Sat Jan 16 10:44:40 2021 -0800
+++ b/libinterp/corefcn/__ftp__.cc	Sat Jan 16 11:50:42 2021 -0800
@@ -506,7 +506,7 @@
               ofile.close ();
 
               if (url_xfer.good ())
-                delete_file.set ();
+                delete_file.discard ();
             }
 
           if (! url_xfer.good ())