[Genabel-commits] r1445 - pkg/ProbABEL/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Dec 3 10:44:47 CET 2013


Author: lckarssen
Date: 2013-12-03 10:44:46 +0100 (Tue, 03 Dec 2013)
New Revision: 1445

Modified:
   pkg/ProbABEL/src/coxph_data.h
   pkg/ProbABEL/src/regdata.cpp
Log:
Fixed a few cppcheck errors introduced recently in ProbABEL

Modified: pkg/ProbABEL/src/coxph_data.h
===================================================================
--- pkg/ProbABEL/src/coxph_data.h	2013-12-02 18:22:46 UTC (rev 1444)
+++ pkg/ProbABEL/src/coxph_data.h	2013-12-03 09:44:46 UTC (rev 1445)
@@ -27,10 +27,12 @@
 
     coxph_data()
     {
-        nids = 0;
-        ncov = 0;
-        ngpreds = 0;
+        nids        = 0;
+        ncov        = 0;
+        ngpreds     = 0;
         masked_data = NULL;
+        gcount      = 0;
+        freq        = 0;
     }
 
     coxph_data(const coxph_data &obj);

Modified: pkg/ProbABEL/src/regdata.cpp
===================================================================
--- pkg/ProbABEL/src/regdata.cpp	2013-12-02 18:22:46 UTC (rev 1444)
+++ pkg/ProbABEL/src/regdata.cpp	2013-12-03 09:44:46 UTC (rev 1445)
@@ -36,6 +36,8 @@
     ncov = obj.ncov;
     ngpreds = obj.ngpreds;
     noutcomes = obj.noutcomes;
+    gcount = obj.gcount;
+    freq = obj.freq;
     is_interaction_excluded = obj.is_interaction_excluded;
     masked_data = new unsigned short int[nids];
 



More information about the Genabel-commits mailing list