[Debichem-commits] [SCM] massXpert mass spectrometry suite: debian packaging branch, debian, updated. upstream/3.2.0-1-g5564507

Filippo Rusconi (Debian Maintainer) rusconi-debian at laposte.net
Thu Nov 24 21:28:18 UTC 2011


The following commit has been merged in the debian branch:
commit 72877e23baee3afd9aae03f4ac4d415731a46f3f
Author: Filippo Rusconi (Debian Maintainer) <rusconi-debian at laposte.net>
Date:   Mon Jan 3 16:32:02 2011 +0100

    Fixed bug due to returning false instead of empty string.

diff --git a/lib/polymer.cpp b/lib/polymer.cpp
index c49c405..d3c5f42 100644
--- a/lib/polymer.cpp
+++ b/lib/polymer.cpp
@@ -844,12 +844,12 @@ namespace massXpert
     */
 
     if (!file.open(QIODevice::ReadOnly))
-      return false;
+      return QString("");
   
     if (!doc.setContent(&file)) 
       {
 	file.close();
-	return false;
+	return QString("");
       }
   
     file.close();
@@ -860,7 +860,7 @@ namespace massXpert
       {
 	qDebug() << __FILE__ << __LINE__
 		  << "Polymer sequence file is erroneous\n";
-	return false;
+	return QString("");
       }
   
     // <polchemdef_name>

-- 
massXpert mass spectrometry suite: debian packaging



More information about the Debichem-commits mailing list