[Genabel-commits] r1463 - pkg/GenABEL/src/GAlib

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Dec 12 14:11:58 CET 2013


Author: maksim
Date: 2013-12-12 14:11:58 +0100 (Thu, 12 Dec 2013)
New Revision: 1463

Modified:
   pkg/GenABEL/src/GAlib/convert_snp_illumina.cpp
Log:
Fixed clang warnings for convert_snp_illumina.cpp

Modified: pkg/GenABEL/src/GAlib/convert_snp_illumina.cpp
===================================================================
--- pkg/GenABEL/src/GAlib/convert_snp_illumina.cpp	2013-12-10 13:57:37 UTC (rev 1462)
+++ pkg/GenABEL/src/GAlib/convert_snp_illumina.cpp	2013-12-12 13:11:58 UTC (rev 1463)
@@ -67,7 +67,7 @@
 	for (int i=0;i<ncodes;i++) codeset[i].assign(allele_codes[i]);
 
 	ifstream illfile (filename[0]);
-	if (illfile == NULL) {
+	if (!illfile.is_open()) {
 		error ("could not open file '%s'!",filename[0]);
 	}
 
@@ -267,7 +267,7 @@
 	const ios_base::fmtflags hex = ios_base::hex;
 
 	ofstream outfile (outfilename[0]);
-	if (outfile == NULL) {
+	if (!outfile.is_open()) {
 		error ("could not open file '%s' !",outfilename[0]);
 	}
 



More information about the Genabel-commits mailing list