diff libinterp/dldfcn/__ode15__.cc @ 31603:23520a50d74d stable

maint: Review C++ files for style and coding conventions. * __ftp__.cc (F__ftp_cwd__, F__ftp_mget__), __isprimelarge__.cc (F__isprimelarge__, F__pollardrho__), debug.cc (Fdbclear), file-io.cc (Ftempdir): Don't bother to define nargin if it is used only once in function. Instead, just call args.length () for the one instance. * data.cc (fill_matrix): Eliminate useless break statement after error() which throws exception. * qr.cc (Fqr), __ode15__.cc (IDA::integrate, IDA::event, IDA::interpolate, IDA::outputfun): Use true or false rather than 0 or 1 when assigning to bool variables. maint: Review C++ files for style and coding conventions.
author Rik <rik@octave.org>
date Wed, 30 Nov 2022 20:27:16 -0800
parents c9788d7f6e65
children e88a07dec498
line wrap: on
line diff
--- a/libinterp/dldfcn/__ode15__.cc	Thu Dec 01 15:00:07 2022 -0500
+++ b/libinterp/dldfcn/__ode15__.cc	Wed Nov 30 20:27:16 2022 -0800
@@ -633,7 +633,7 @@
     ColumnVector ie, te, oldval, oldisterminal, olddir;
     Matrix output, ye;
     octave_idx_type cont = 0, temp = 0;
-    bool status = 0;
+    bool status = false;
     std::string string = "";
     ColumnVector yold = y;
 
@@ -800,7 +800,7 @@
               ColumnVector& yold,
               const octave_idx_type num_event_args)
   {
-    bool status = 0;
+    bool status = false;
 
     octave_value_list args;
     if (num_event_args == 2)
@@ -915,7 +915,7 @@
                     const octave_idx_type num_event_args)
   {
     realtype h = 0, tcur = 0;
-    bool status = 0;
+    bool status = false;
 
     N_Vector dky = N_VNew_Serial (m_num OCTAVE_SUNCONTEXT);
 
@@ -978,7 +978,7 @@
                   realtype tend, ColumnVector& outputsel,
                   const std::string& flag)
   {
-    bool status = 0;
+    bool status = false;
 
     octave_value_list output;
     output(2) = flag;