diff liboctave/util/oct-sparse.cc @ 27101:097774bed4ed

move some static functions inside octave namespace In most files that define static functions and use the octave namespace, define the static fucntions inside the namespace. Files affected: octave-qscintilla.cc, main-window.cc, variable-editor-model.cc, variable-editor.cc, welcome-wizard.cc, call-stack.cc, environment.cc, help.cc, input.cc, load-path.cc, sysdep.cc, text-renderer.cc, url-handle-manager.cc, __ode15__.cc, ov-typeinfo.cc, aepbalance.cc, chol.cc, gsvd.cc, file-ops.cc, lo-array-errwarn.cc, lo-regexp.cc, oct-glob.cc, and oct-sparse.cc.
author John W. Eaton <jwe@octave.org>
date Tue, 21 May 2019 19:50:59 +0000
parents 00f796120a6d
children 84ff9953faa1
line wrap: on
line diff
--- a/liboctave/util/oct-sparse.cc	Tue May 21 17:39:13 2019 +0000
+++ b/liboctave/util/oct-sparse.cc	Tue May 21 19:50:59 2019 +0000
@@ -31,19 +31,19 @@
      || defined (HAVE_CHOLMOD) || defined (HAVE_COLAMD)         \
      || defined (HAVE_CXSPARSE) || defined (HAVE_UMFPACK))
 
-static inline void
-check_suitesparse_integer_size (void)
-{
-  // FIXME: maybe it would be better to make this a configure check and
-  // disable suitesparse if it fails?
-
-  if (sizeof (octave::suitesparse_integer) != sizeof (octave_idx_type))
-    (*current_liboctave_error_handler)
-      ("size of suitesparse integer does not match octave_idx_type!");
-}
-
 namespace octave
 {
+  static inline void
+  check_suitesparse_integer_size (void)
+  {
+    // FIXME: maybe it would be better to make this a configure check and
+    // disable suitesparse if it fails?
+
+    if (sizeof (octave::suitesparse_integer) != sizeof (octave_idx_type))
+      (*current_liboctave_error_handler)
+        ("size of suitesparse integer does not match octave_idx_type!");
+  }
+
   suitesparse_integer *
   to_suitesparse_intptr (octave_idx_type *i)
   {