diff libinterp/corefcn/utils.cc @ 31718:52a5bec0fc74

style fixes: avoid breaking lines after "(" and prefer "" over QString ("") Affected files: documentation-bookmarks.cc, files-dock-widget.cc gui-preferences-sd.h, gui-utils.cc, led-indicator.cc, file-editor.cc, main-window.cc, octave-dock-widget.cc, settings-dialog.cc, workspace-view.cc, amd.cc, dasrt.cc, fcn-info.cc, graphics.cc, input.cc, lsode.cc, mex.cc, ordschur.cc, strfns.cc, symtab.cc, time.cc, toplev.cc, urlwrite.cc, utils.cc, cdef-class.cc, cdef-package.cc, ov-cell.cc, ov-class.cc, ov-fcn-handle.cc, ov-struct.cc.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jan 2023 17:19:16 -0500
parents 597f3ee61a48
children 939e5d952675
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc	Fri Jan 06 16:51:35 2023 -0500
+++ b/libinterp/corefcn/utils.cc	Fri Jan 06 17:19:16 2023 -0500
@@ -573,8 +573,7 @@
   if (nargin < 1 || nargin > 2)
     print_usage ();
 
-  string_vector names = args(
-                          0).xstring_vector_value ("file_in_loadpath: FILE argument must be a string");
+  string_vector names = args(0).xstring_vector_value ("file_in_loadpath: FILE argument must be a string");
 
   if (names.empty ())
     error ("file_in_loadpath: FILE argument must not be empty");
@@ -585,8 +584,7 @@
     return ovl (sys::env::make_absolute (lp.find_first_of (names)));
   else
     {
-      std::string opt = args(
-                          1).xstring_value ("file_in_loadpath: optional second argument must be a string");
+      std::string opt = args(1).xstring_value ("file_in_loadpath: optional second argument must be a string");
 
       if (opt != "all")
         error (R"(file_in_loadpath: "all" is only valid second argument)");
@@ -940,8 +938,7 @@
   if (args.length () != 1)
     print_usage ();
 
-  std::string str = args(
-                      0).xstring_value ("do_string_escapes: STRING argument must be of type string");
+  std::string str = args(0).xstring_value ("do_string_escapes: STRING argument must be of type string");
 
   return ovl (do_string_escapes (str));
 }