X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=synthesisRef.cpp;h=aa0d473b6537088fcb820f246de9898fa1864ef4;hb=5a1c0c7e480ffda84f83d224246c754a4761500f;hp=8ce268c197dfff87b7c6d989077fe863cc0d1a4c;hpb=fc69cf6af24c0550e55447fc82f01cb6f90c1c42;p=rsem.git diff --git a/synthesisRef.cpp b/synthesisRef.cpp index 8ce268c..aa0d473 100644 --- a/synthesisRef.cpp +++ b/synthesisRef.cpp @@ -118,7 +118,6 @@ int main(int argc, char* argv[]) { ifstream fin; string line, gseq; string seqname, gene_id; - void* pt; vector vec; @@ -127,13 +126,13 @@ int main(int argc, char* argv[]) { for (int i = start; i < argc; i++) { fin.open(argv[i]); if (!fin.is_open()) { fprintf(stderr, "Cannot open %s! It may not exist.\n", argv[i]); exit(-1); } - pt = getline(fin, line); - while (pt != 0 && line[0] == '>') { + getline(fin, line); + while ((fin) && (line[0] == '>')) { istringstream strin(line.substr(1)); strin>>seqname; gseq = ""; - while((pt = getline(fin, line)) && line[0] != '>') { + while((getline(fin, line)) && (line[0] != '>')) { gseq += line; }