diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-09-18 08:14:56 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-09-18 08:14:56 +0000 |
commit | 6155fc8ed5133632a4702b0fe7dea8d3823089ea (patch) | |
tree | ab4eb0abe76d84cfc2ad77f5182e80ea9ba7a560 /biology | |
parent | 042b2e1dda687864051a752bc212c13739b3faa4 (diff) |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/avida/files/patch-source::tools::data_entry.hh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/biology/avida/files/patch-source::tools::data_entry.hh b/biology/avida/files/patch-source::tools::data_entry.hh new file mode 100644 index 000000000000..71ab0df011bf --- /dev/null +++ b/biology/avida/files/patch-source::tools::data_entry.hh @@ -0,0 +1,44 @@ +--- source/tools/data_entry.hh.orig Fri Sep 17 16:43:13 2004 ++++ source/tools/data_entry.hh Fri Sep 17 16:45:30 2004 +@@ -94,19 +94,19 @@ + DataSet(_funS), DataCompare(_funC) { ; } + + bool Print(std::ostream & fp) const { +- if (target == NULL) return false; +- fp << (target->*DataRetrieval)(); ++ if (this->target == NULL) return false; ++ fp << (this->target->*DataRetrieval)(); + return true; + } + + //int Compare(T * other) const { return (target->*DataCompare)(other); } + int Compare(T * other) const { +- return (DataCompare)?((target->*DataCompare)(other)):(0); ++ return (DataCompare)?((this->target->*DataCompare)(other)):(0); + } + bool Set(const cString & value) { + OUT new_value(0); + if (DataSet == 0) return false; +- (target->*DataSet)( cStringUtil::Convert(value, new_value) ); ++ (this->target->*DataSet)( cStringUtil::Convert(value, new_value) ); + return true; + } + }; +@@ -128,14 +128,14 @@ + DataRetrieval(_funR), DataCompare(_funC), arg(_arg) { ; } + + bool Print(std::ostream & fp) const { +- if (target == NULL) return false; +- fp << (target->*DataRetrieval)(arg); ++ if (this->target == NULL) return false; ++ fp << (this->target->*DataRetrieval)(arg); + return true; + } + + //int Compare(T * other) const { return (target->*DataCompare)(other, arg); } + int Compare(T * other) const { +- return (DataCompare)?((target->*DataCompare)(other, arg)):(0); ++ return (DataCompare)?((this->target->*DataCompare)(other, arg)):(0); + } + }; + |