diff liboctave/system/lo-sysdep.cc @ 27102:84ff9953faa1

where possible, eliminate octave:: namespace qualifier inside octave namespace Affected files: file-editor-tab.cc, file-editor.cc, main-window.cc, octave-cmd.h, octave-qt-link.cc, settings-dialog.cc, call-stack.cc, environment.cc, ft-text-renderer.cc, gl2ps-print.cc, help.cc, input.cc, interpreter-private.cc, interpreter-private.h, interpreter.cc, load-path.cc, oct-hist.cc, oct-process.cc, oct-stream.cc, pager.cc, syminfo.cc, symtab.h, sysdep.cc, text-renderer.cc, utils.cc, gzip.cc, cdef-manager.cc, ov-fcn-handle.cc, ov-java.cc, jit-typeinfo.cc, oct-parse.yy, pt-eval.cc, pt-tm-const.cc, chol.cc, gsvd.cc, oct-rand.cc, oct-rand.h, randmtzig.cc, randpoisson.cc, file-ops.cc, lo-sysdep.cc, file-info.cc, oct-glob.cc, oct-sparse.cc, and url-transfer.cc.
author John W. Eaton <jwe@octave.org>
date Wed, 22 May 2019 13:57:30 +0000
parents 481ac37b0e0e
children b442ec6dda5c
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.cc	Tue May 21 19:50:59 2019 +0000
+++ b/liboctave/system/lo-sysdep.cc	Wed May 22 13:57:30 2019 +0000
@@ -179,7 +179,7 @@
 
 #if defined (OCTAVE_USE_WINDOWS_API)
       wchar_t *wnew_item = u8_to_wchar (new_item);
-      octave::unwind_protect frame;
+      unwind_protect frame;
       frame.add_fcn (std::free, static_cast<void *> (new_item));
       if (_wputenv (wnew_item) < 0)
         (*current_liboctave_error_handler) ("putenv (%s) failed", new_item);
@@ -374,7 +374,7 @@
       if (test_dir.empty ())
       {
         std::string msg;
-        int status = octave::sys::mkdir (oct_ascii_dir, 0777, msg);
+        int status = sys::mkdir (oct_ascii_dir, 0777, msg);
 
         if (status < 0)
           return orig_file_name;
@@ -386,12 +386,12 @@
       // Create file from hash of full filename.
       std::string filename_hash
         = (oct_ascii_dir + file_ops::dir_sep_str ()
-           + octave::crypto::hash ("SHA1", orig_file_name));
+           + crypto::hash ("SHA1", orig_file_name));
 
       std::string abs_filename_hash = canonicalize_file_name (filename_hash);
 
       if (! abs_filename_hash.empty ())
-        octave::sys::unlink (filename_hash);
+        sys::unlink (filename_hash);
 
       wchar_t w_filename_hash[filename_hash.length ()+1] = {0};