Mercurial > octave
changeset 28894:61bdb3e2f6a1
maint: Use coding style with parentheses after function name in libinterp.
* dirfns.cc, graphics.cc:
Use coding style with parentheses after function name in Octave code in BIST
tests embedded in C++ code..
author | Rik <rik@octave.org> |
---|---|
date | Sat, 10 Oct 2020 20:06:12 -0700 |
parents | cbd02f41c314 |
children | 41c54377d67f |
files | libinterp/corefcn/dirfns.cc libinterp/corefcn/graphics.cc |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/dirfns.cc Sat Oct 10 17:59:23 2020 -0700 +++ b/libinterp/corefcn/dirfns.cc Sat Oct 10 20:06:12 2020 -0700 @@ -601,10 +601,10 @@ /* %!test -%! tmpdir = tempname; +%! tmpdir = tempname (); %! filename = {"file1", "file2", "file3", "myfile1", "myfile1b"}; %! if (mkdir (tmpdir)) -%! cwd = pwd; +%! cwd = pwd (); %! cd (tmpdir); %! if (strcmp (canonicalize_file_name (pwd), canonicalize_file_name (tmpdir))) %! a = 0;
--- a/libinterp/corefcn/graphics.cc Sat Oct 10 17:59:23 2020 -0700 +++ b/libinterp/corefcn/graphics.cc Sat Oct 10 20:06:12 2020 -0700 @@ -12580,8 +12580,8 @@ %! unwind_protect %! assert (ishghandle (hf)); %! assert (! ishghandle (-hf)); -%! ax = gca; -%! l = line; +%! ax = gca (); +%! l = line (); %! assert (ishghandle (ax)); %! assert (! ishghandle (-ax)); %! assert (ishghandle ([l, -1, ax, hf]), logical ([1, 0, 1, 1]));