diff options
author | danfe <danfe@FreeBSD.org> | 2004-09-18 16:14:56 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2004-09-18 16:14:56 +0800 |
commit | a814f5490c144e61617133168a7cfaae7997382a (patch) | |
tree | e893d773bac2d99388744f40346e1fd9f26fa029 /biology/avida | |
parent | 1e2d3a627440d68da659598fbfaabb3560b7b8ff (diff) | |
download | freebsd-ports-gnome-a814f5490c144e61617133168a7cfaae7997382a.tar.gz freebsd-ports-gnome-a814f5490c144e61617133168a7cfaae7997382a.tar.zst freebsd-ports-gnome-a814f5490c144e61617133168a7cfaae7997382a.zip |
Unbreak the build on 5.X and -CURRENT.
Reported by: pointyhat.freebsd.org
Approved by: portmgr (marcus), fjoe (mentor, implicit)
Diffstat (limited to 'biology/avida')
-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); + } + }; + |