diff liboctave/sparse-base-chol.h @ 12125:a21a3875ca83

implement a common class for reference counts
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 20 Jan 2011 11:10:27 +0100
parents f4689107dd8c
children 43cc49c7abd1
line wrap: on
line diff
--- a/liboctave/sparse-base-chol.h
+++ b/liboctave/sparse-base-chol.h
@@ -78,7 +78,7 @@
 
     double rcond (void) const { return cond; }
 
-    int count;
+    octave_refcount<int> count;
 
   private:
     cholmod_sparse *Lsparse;
@@ -132,7 +132,7 @@
 
     double rcond (void) const { return cond; }
 
-    int count;
+    octave_refcount<int> count;
 
   private:
     bool is_pd;