diff libinterp/corefcn/gcd.cc @ 29931:7faff48840eb

prefer data over fortran_vec for read-only access to data See also the discussion here: https://octave.discourse.group/t/rename-uses-of-fortran-vec-to-data-for-clarity/1439 * Array.h (const T * Array<T>::fortran_vec (void) const): Deprecate. Change all uses to call data instead.
author John W. Eaton <jwe@octave.org>
date Fri, 30 Jul 2021 11:46:05 -0400
parents 7854d5752dd2
children 32c3a5805893
line wrap: on
line diff
--- a/libinterp/corefcn/gcd.cc	Fri Jul 30 17:34:10 2021 +0200
+++ b/libinterp/corefcn/gcd.cc	Fri Jul 30 11:46:05 2021 -0400
@@ -346,8 +346,8 @@
 
       NDA gg (dv), xx (dv), yy (dv);
 
-      const T *aptr = aa.fortran_vec ();
-      const T *bptr = bb.fortran_vec ();
+      const T *aptr = aa.data ();
+      const T *bptr = bb.data ();
 
       bool inca = aa.numel () != 1;
       bool incb = bb.numel () != 1;