[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Jul 12 23:50:30 CEST 2004


CVS commit by staikos: 

add const, use bitfield


  M +6 -6      kstvector.h   1.48


--- kdeextragear-2/kst/kst/kstvector.h  #1.47:1.48
@@ -130,11 +130,7 @@ class KstVector : public KstObject {
 
     /** access functions for _bIsScalarList */
-    bool isScalarList( ) { return _bIsScalarList; }
+    bool isScalarList() const { return _bIsScalarList; }
     
   protected: // Protected attributes
-    /** if true then we have a scalar list and do not want to be able to
-    use it in a curve, display statistics for it, etc. */
-    bool _bIsScalarList;
-  
     /** current number of samples */
     int _size;
@@ -163,5 +159,9 @@ class KstVector : public KstObject {
 
     /** is the vector monotonically rising */
-    bool _is_rising;
+    bool _is_rising : 1;
+
+    /** if true then we have a scalar list and do not want to be able to
+    use it in a curve, display statistics for it, etc. */
+    bool _bIsScalarList : 1;
 
     /** Scalar Maintenance methods */





More information about the Kst mailing list