[PPL-devel] [GIT] ppl/ppl(master): Prefer explicit test against zero.
Enea Zaffanella
zaffanella at cs.unipr.it
Sat Feb 25 12:55:31 CET 2012
Module: ppl/ppl
Branch: master
Commit: ce56ec42203672a969d24b819854e48a8ec60985
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=ce56ec42203672a969d24b819854e48a8ec60985
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Sat Feb 25 12:54:34 2012 +0100
Prefer explicit test against zero.
Detected by ECLAIR service utypflag.
---
demos/ppl_lcdd/ppl_lcdd.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/demos/ppl_lcdd/ppl_lcdd.cc b/demos/ppl_lcdd/ppl_lcdd.cc
index d6f1b8e..e30de0e 100644
--- a/demos/ppl_lcdd/ppl_lcdd.cc
+++ b/demos/ppl_lcdd/ppl_lcdd.cc
@@ -241,7 +241,7 @@ set_input(const char* file_name) {
std::istream&
input() {
- assert(input_stream_p);
+ assert(input_stream_p != 0);
return *input_stream_p;
}
@@ -269,7 +269,7 @@ set_output(const char* file_name) {
std::ostream&
output() {
- assert(output_stream_p);
+ assert(output_stream_p != 0);
return *output_stream_p;
}
More information about the PPL-devel
mailing list