--- a/src/iqp.cpp
+++ b/src/iqp.cpp
@@ -508,7 +508,7 @@
- if (in_pam.tree_file != NULL) {
- std::ifstream userTreeFile_;
- userTreeFile_.open (in_pam.tree_file);
-- if (userTreeFile_ != 0) {
-+ if (userTreeFile_) {
- initialTree_.readFile (in_pam.tree_file);
- initialTree_.createUrTree ();
- hasInitTree = true;
+ if (in_pam.tree_file != NULL) {\r
+ std::ifstream userTreeFile_;\r
+ userTreeFile_.open (in_pam.tree_file);\r
+- if (userTreeFile_ != 0) {\r
++ if (userTreeFile_) {\r
+ initialTree_.readFile (in_pam.tree_file);\r
+ initialTree_.createUrTree ();\r
+ hasInitTree = true;\r
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -118,7 +118,7 @@
-
- ifstream in;
- in.open (boottree_file_name.c_str());
-- if (in == 0)
-+ if (!in)
- Utl::announceError ("Cannot open the user tree file ...");
-
- int num_tree = 0;
+ \r
+ ifstream in;\r
+ in.open (boottree_file_name.c_str());\r
+- if (in == 0)\r
++ if (!in)\r
+ Utl::announceError ("Cannot open the user tree file ...");\r
+ \r
+ int num_tree = 0;\r
--- a/src/usertree.cpp
+++ b/src/usertree.cpp
@@ -94,7 +94,7 @@
- void UserTree::readFile (const char *userTreeFile) {
- ifstream in;
- in.open (userTreeFile);
-- if (in == 0)
-+ if (!in)
- Utl::announceError ("Cannot open the user tree file ...");
-
- readFile(in);
+ void UserTree::readFile (const char *userTreeFile) {\r
+ ifstream in;\r
+ in.open (userTreeFile);\r
+- if (in == 0)\r
++ if (!in)\r
+ Utl::announceError ("Cannot open the user tree file ...");\r
+ \r
+ readFile(in);\r